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
With the addition of BigInt, JavaScript now has a type that can reliably store snowflakes as Integers. This type has been in node.js for almost a year now, and uses an average of 40% less memory to store snowflakes compared to Strings. I haven't tested it, but I also suspect this will be easier and/or faster to convert to than Strings are as well. For full disclosure, tests done by the Dyno team showed that the 40% decrease in memory for snowflakes made no noticeable difference in the total memory usage. I'm not stating that erlpack absolutely must switch over, as this would also be a major breaking change for the JavaScript DAPI libraries that utilize erlpack, but I thought I would at least bring up the idea and invite discussion.
The text was updated successfully, but these errors were encountered:
With the addition of
BigInt
, JavaScript now has a type that can reliably store snowflakes as Integers. This type has been in node.js for almost a year now, and uses an average of 40% less memory to store snowflakes compared toString
s. I haven't tested it, but I also suspect this will be easier and/or faster to convert to thanString
s are as well. For full disclosure, tests done by the Dyno team showed that the 40% decrease in memory for snowflakes made no noticeable difference in the total memory usage. I'm not stating that erlpack absolutely must switch over, as this would also be a major breaking change for the JavaScript DAPI libraries that utilize erlpack, but I thought I would at least bring up the idea and invite discussion.The text was updated successfully, but these errors were encountered: