Lemmy: Bestiverse
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
RSS BotMB to Lobste.rsEnglish · 3 hours ago

Storing Unwise Amounts of Data in JavaScript Bigints

jonathan-frere.com

external-link
message-square
0
fedilink
4
external-link

Storing Unwise Amounts of Data in JavaScript Bigints

jonathan-frere.com

RSS BotMB to Lobste.rsEnglish · 3 hours ago
message-square
0
fedilink
Storing Unwise Amounts of Data in JavaScript Bigints | Jonathan's Blog
jonathan-frere.com
external-link
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 configuration keys were the same, but different objects had different keys set. This approach was causing some issues:

Comments

alert-triangle
You must log in or register to comment.

Lobste.rs

lobsters

Subscribe from Remote Instance

You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !lobsters@lemmy.bestiver.se
lock
Community locked: only moderators can create posts. You can still comment on posts.

RSS Feed of lobste.rs

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 29 users / day
  • 160 users / week
  • 388 users / month
  • 1.3K users / 6 months
  • 2 local subscribers
  • 259 subscribers
  • 7.85K Posts
  • 394 Comments
  • Modlog
  • mods:
  • patrick
  • RSS Bot
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org