Nicholas C. Zakas on Nostr: I've come across a few instances where people claim that JavaScript arrays have a ...
I've come across a few instances where people claim that JavaScript arrays have a performance impact when adding a variable number of elements due to memory allocations, and that JS-based linked lists are more performant. Anyone seen benchmarks for this?
Published at
2025-02-14 21:31:01 UTCEvent JSON
{
"id": "365f53344ee08efa587d03036d7e713e6e596f6fcbd3335c5757f5b0614ca22d",
"pubkey": "4532dd6ede9af6fca9073d73488b125f4868d0ff4cad3f0aaaf901d1cf0650f1",
"created_at": 1739568661,
"kind": 1,
"tags": [
[
"proxy",
"https://fosstodon.org/@nzakas/114004371802110851",
"web"
],
[
"proxy",
"https://fosstodon.org/users/nzakas/statuses/114004371802110851",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://fosstodon.org/users/nzakas/statuses/114004371802110851",
"pink.momostr"
],
[
"-"
]
],
"content": "I've come across a few instances where people claim that JavaScript arrays have a performance impact when adding a variable number of elements due to memory allocations, and that JS-based linked lists are more performant. Anyone seen benchmarks for this?",
"sig": "69249ac8fbfd44b8249e23266766dca5b6f712aa093269e03d34ebe2b2af95245b5045ea430f28a4098af516896f5e671900c4038dc1b3316c5916dcd8a413d0"
}