Closed dgynn closed 8 years ago
@dgynn As small as this PR is, I'm pretty snowed under at the moment so won't have time to look into it, in detail, for a while. I just wanted you to know that the PR is hugely appreciated and I'll take a look as soon as I can.
Thanks, @gerrywastaken. No rush at all.
@dgynn Finally got an afternoon free to look over this. Amazing work!
This is a follow-on from the changes in #264 and fully eliminates the performance overhead on Arrays when not working with arrays of methods.
Using the same benchmark script as the previous PR will show the performance of any Array differencing is the same with or without awesome_print loaded. The timing for the benchmarks depends on the complexity of the arrays being tested. I'm seeing a ~35% overhead eliminated for the simplest case of
[] - []
.@michaeldv You have a old, old comment in code for "If you could think of a better way please let me know" so I thought you might want to check this out too.