script memory / Mimalloc optimization #38

Open
opened 2025-06-11 05:55:37 +00:00 by john · 0 comments
Owner

A few things here

  1. Only do frees and memory reclamation out of turns. That should cut a lot of time down when dealing with huge lists that are freed.
  2. Mimalloc can set aside a chunk of memory for heaps. Have it do so per actor to keep their cache better.
  3. Miamalloc can be further optimized by declaring that an object is "small", which is < 1KB. Most JS objects are.
A few things here 1) Only do frees and memory reclamation out of turns. That should cut a lot of time down when dealing with huge lists that are freed. 2) Mimalloc can set aside a chunk of memory for heaps. Have it do so per actor to keep their cache better. 3) Miamalloc can be further optimized by declaring that an object is "small", which is < 1KB. Most JS objects are.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: john/cell#38
No description provided.