Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
karmakaze
3y ago
0 comments
Save
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.
0 comments
2 comments · 1 top-level
top
newest
oldest
account42
3y ago
· 1 in thread
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