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: strings and bytes joined in one allocation and one copy (issue #129)

tl_string_join and tl_bytes_concat_all walk the list twice: the total
length, then each part straight into the new block (values::string_uninit,
bytes_uninit, joined_len, write_joined), where they gathered a Vec, joined
it into a buffer and copied that. `<>` (tl_string_concat), bytes.concat
and string.to_lower build in place too. Lengths are checked for overflow.

html: -7.9% cycles, -3.1% instructions (one thread, pinned, best of 9);
dict and lists unchanged. A runtime test covers empty lists, separators,
UTF-8 and a 1 MB part, with the NUL and the leak oracle checked.

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

olivier · il y a 1 mois · a6134f8914eaa0c4fa54dd876b7328e0a7d22cfa

Parents 89841f0

4 fichiers modifiés, 146 ajouts, 20 suppressions