bytecodealliance/StarlingMonkey
View on GitHubOptimize computing encoded `FormData` length
Open
#211 opened on Feb 14, 2025
good first issue
Repository metrics
- Stars
- (271 stars)
- PR merge metrics
- (PR metrics pending)
Description
As discussed here: https://github.com/bytecodealliance/StarlingMonkey/pull/200#discussion_r1952578511: It’s unfortunate that we’re only performing encoding to calculate the length of the encoded stream, after which the result is discarded. One possible solution would be to store the encoded output when constructing the FormData.