You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just a quick reminder that it might be necessary to use this library in a multithreaded context for example for accounting software with work split across one core per year.
In that case trivial types like arrays should be preferred over sequences if possible, for example here:
This also avoids memory allocation which might be a bottleneck if done regularly and which is also problematic for long-running processes as it might lead to memory fragmentation.
The text was updated successfully, but these errors were encountered:
That particular reference, the contents of dpd.nim are not actually being used right now as the library does not support densley packed binary yet. decimal128.nim does not even import it. But when it does, I'll be sure to convert to a static array. The array is fixed at 34 bytes, so converting to a static array will be easy.
Just a quick reminder that it might be necessary to use this library in a multithreaded context for example for accounting software with work split across one core per year.
In that case trivial types like arrays should be preferred over sequences if possible, for example here:
decimal128/src/decimal128/dpd.nim
Lines 72 to 127 in 9ec5431
This also avoids memory allocation which might be a bottleneck if done regularly and which is also problematic for long-running processes as it might lead to memory fragmentation.
The text was updated successfully, but these errors were encountered: