Open kikonen opened 8 years ago
@kikonen Any chance of some profiling on a PR. The problem you are talking about isn't immediately obvious to me, but some profiling would probably help.
Not recalling exactly. Recalling this was causing significant overhead on "-" and "&" operations on lists; basically meaning that awesome_print gem must be ensured to be not included in Gemfile in non development setup (I've taken that approach).
Ok well I'll leave this open for now until somebody provides some benchmarks or I have time to look into it myself and test things.
I've just added PR #264 which addresses this issue and includes benchmarks. I meant to reference this issue in the commit.
For example, following piece of logic seems to trigger lots of allocations of '@awesome_methods' string. Perhaps should use '@awesome_methods'.freeze instead. Also seemingly other extra alloc happens.
This is inconvenient, since extra overhead is added into every execution of "-" and "&" operators in arrays.