tobogganSe connecter

louise

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

Codegen: constant trait dictionaries are static, immortal blocks (issue #34)

A dictionary without constraints, such as Num<Int>, was built at every
use: six closures and a tuple allocated, then freed, for each `+`. A
function with no parameters that only builds closures without captures
and a tuple of them is now emitted as static, read-only blocks with
count 0 (immortal, like string literals), and a call to it reads their
address.

tl_dup and tl_drop now leave immortal blocks alone inline instead of
calling tl_dup_shared / tl_drop_slow, so using such a dictionary costs
no call. Because the blocks are const, the C compiler can fold the
method lookup into a direct call.

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

olivier · il y a 1 mois · fa0a46b689332e60602eff0a55c86dfc82925859

Parents 232e05c

3 fichiers modifiés, 87 ajouts, 8 suppressions