tobogganSe connecter

louise

Clone avec HTTPS, un jeton personnel en mot de passe, ou avec SSH, une clé ajoutée dans vos paramètres.

Runtime: allocate and free blocks on mimalloc's fast paths (issue #61)

The mimalloc crate's GlobalAlloc always takes mimalloc's aligned path,
and freeing through it computed each block's layout for nothing. Blocks
now call libmimalloc-sys directly: mi_malloc (whose 16-byte alignment
covers blocks), mi_free, and mi_realloc for blocks that grow in place
(arrays, builders). Without the mimalloc feature, the system
allocator is used as before.

tl_drop_slow frees a unique block without children or finalizer (a
Float, a String) at once, instead of through the actor's drop worklist.

tests/bench, user-space cycles, best of 5 interleaved: floats -39%,
dict -17%, messages -4%, html -3%, lists -1%, arith and effects equal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

olivier · il y a 1 mois · bc5f54fe954fe96df3fb0fe47f0418f203ad943a

Parents 1c646bb

3 fichiers modifiés, 89 ajouts, 20 suppressions