Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
0 points
karmakaze
3y ago
0 comments
Share
The way to fix it in that manner here is to undo the 42% speedup and return the heap allocated object for the caller to mangle.
undefined | Better HN
0 comments
default
newest
oldest
account42
3y ago
Yes, if you are serious about backwards compat then you pay that cost and perhaps add a separate function that is faster for callers to opt into.
karmakaze
OP
3y ago
Effectively deprecating the old one and recommending the new one being a way to smoothly 'fix' an API.
j
/
k
navigate · click thread line to collapse