babel-plugin-loop-optimizer
babel-plugin-loop-optimizer copied to clipboard
Alternate Approach to Loop Optimization
Hello! This isn't so much an issue, as it is an alternate approach to loop optimization. I've forked this project over here.
Among the changes are reimplementing all functions to be handled by Handle_map with a enum mode, adding reduce/reduceRight/some, including benchmarks, pre-allocating the array for .map, and transforming inline functions directly into the for statements.
I haven't issued a PR, since this is quite a change to the way the original project was implemented. But if it's desired, I could make one. Or, a developer could grab some of the work from my repo if they like!
@Smorgasbordq
Hi!
why didn't you publish your work in npm?
PS: by the way, the code falls with some errors