NodeRedis/node-redis-parser

Misc Performance

Salakar opened this issue ยท 1 comments

https://github.com/NodeRedis/node-redis-parser/blob/master/lib/javascript.js#L42 changing this huge if else block to a switch would improve the perf quite a bit ๐Ÿ‘

Would do a PR myself but my battery is at 4%, send help. ๐Ÿ†˜

EDIT: doing a PR now, lots of perf increases!

I'll make a PR with benchmarks. Closing.