JavaScript performance - how to wring the most out of your Helia deployment
summary
JavaScript async adds real microtask overhead so a synchronous pipeline benchmarks at 132k ops/s vs 81k ops/s; storage choice and sharding matter because S3 gives about 3500 ops/s per S3 prefix and creating many prefixes scales throughput; Helia uses blockstore/datastore abstractions and a default shard (last two chars reversed) plus options like an in‑memory mount for peer keys; garbage collection uses reference-counting GC and stays flat at scale (100k pins tested); increasing block size to 1 MiB cuts BitSwap transfer time substantially.
AI-written summary · about
