perf: no need to create a new array and new anonymous function by cesco69 · Pull Request #3572 · brianc/node-postgres
cesco69
marked this pull request as ready for review
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This calls end/emits removes in a different order, which is probably fine – but it’s also a real microoptimization, especially compared to some of the other stuff the pool does…
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters