Cache generated method compilation - #1602
Conversation
Merging this PR will improve performance by ×2.9
Performance Changes
Tip Curious why this is faster? Comment Comparing Footnotes
|
|
I think this is an artificial optimization. Unless I'm missing something, it only works when someone keep creating (not instantiating) the same class over and over again. We do that in benchmarks, but that's not something regular codes does. On the flip side, this creates a cache that every class pays for. |
that exactly was my use case, I'm sure I'm not the only one doing these sort of things, and the cache perf is negligible imo, but can close. |
|
Yeah sorry, I don’t think that’s worth it considering big picture. |
Summary
Cache compiled generated method scripts by script shape to avoid recompiling identical methods for repeated
attrsclass definitions.