Repository navigation
Revert boxing of Record (undo #12252) - #12340
sholderbach wants to merge 1 commit into
Conversation
|
So I'm curious now - since you fixed the unnecessary clones for cell path follow, how does this compare to the copy on write strategy? I can rebase mine and run the benchmarks head-to-head - just curious if you've already compared it. I suspect this has better performance because of the reduced indirection, but copy on write has its own benefits like you said - some clones are unavoidable, and even for the avoidable ones it still works when developers are/have been lazy. Not sure which is better. Try to make things perfect and remove as many unnecessary clones as possible, or just take advantage of the fact that we don't need to mutate after clone very often to give benefits there even though it's a little bit of a disadvantage when things are working perfectly. |
|
I haven't rebased yet, time for a drag race :P (with a few variable/closure benchmarks sprinkled in maybe) |
Only short-term solution Competes with nushell#12305
782956c to
9057a5f
Compare
|
Formating with @FilipAndersson245 's tool in #12332 Larger
|
|
Closing in favour of copy-on-write optimization |
Description
Depends on
Recordafter #12326 to maintain reduced size ofValueOnly short-term solution
Competes with #12305
Benchmarking: Removing the
Boxindirection again(assumes #12326)
Even better performance on
tablebenchmarks and small additional gains in therecordbenchmarks.Hightlights
Full benchmark run