Storing Unwise Amounts of Data in JavaScript Bigints
jonathan-frere.com·21h·

Contents

Storing Unwise Amounts of Data in JavaScript Bigints

This is a short note to document storing data in JS’s bigint type. I tried this out in a project recently, and it’s not obviously a terrible idea, as long as you take into account all the caveats that make it only useful for very specific cases.

Why

This is a performance1 thing. In the project where I was exploring this, we had a large amount of objects representing configuration values. The possible config…

Similar Posts

Loading similar posts...