replace u8vector port with direct buffer allocation #1464
No reviewers
Labels
No labels
UX
active development
backlog
blocker
bootstrap
bounty
bug
dependencies
discussion
documentation
duplicate
enhancement
flaky test
help wanted
invalid
javascript
question
release
tendentious
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
mighty-gerbils/gerbil!1464
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "hmarcien/1462-optimize-uri-decode"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
closes #1462
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))))))you don't need to subu8vector, you can pass start end args to utf8->string and avoid the allocation.
thank you!