replace u8vector port with direct buffer allocation #1464

Merged
vyzo merged 2 commits from hmarcien/1462-optimize-uri-decode into v0.19-staging 2026-06-13 18:30:15 +00:00 AGit
Member

closes #1462

closes #1462
HMarcien requested review from vyzo 2026-06-13 16:18:26 +00:00
vyzo requested changes 2026-06-13 17:19:34 +00:00
Dismissed
vyzo left a comment

just a small change to avoid an allocation, looks good otherwise and should be significantly faster.

just a small change to avoid an allocation, looks good otherwise and should be significantly faster.
@ -135,0 +132,4 @@
(##u8vector-set! u8-buffer j next)
(loop (fx+ i 1) (fx+ j 1)))))
(utf8->string (subu8vector u8-buffer 0 j))))))
Owner

you don't need to subu8vector, you can pass start end args to utf8->string and avoid the allocation.

you don't need to subu8vector, you can pass start end args to utf8->string and avoid the allocation.
HMarcien marked this conversation as resolved
HMarcien requested review from vyzo 2026-06-13 18:17:19 +00:00
vyzo approved these changes 2026-06-13 18:30:03 +00:00
vyzo left a comment

thank you!

thank you!
vyzo merged commit 880bf1c583 into v0.19-staging 2026-06-13 18:30:15 +00:00
Sign in to join this conversation.
No description provided.