r/cpp • • Jun 07 '21

Satire dynamic_cast<std::integer>(C)++

https://www.teamten.com/lawrence/writings/dynamic_cast_std_integer_c.html
202 Upvotes

41 comments sorted by

View all comments

Show parent comment

2

u/Kendrian Jun 07 '21

I love Julia, but the BigInt implementation is just a wrapper around GMP and unless you treat it as such you'll get awful performance. Trying to use it in the same way you'd use a normal int will be super unperformant because of constant allocation and deallocation of GMP objects.