3 ms·
The issue is the callback, it introduces significant overhead because it is a new context with its own scope on a per callback basis.
by bhouston 11y ago
The issue is the callback, it introduces significant overhead because it is a new context with its own scope on a per callback basis.
- dclowd9901 11y agoYes, exactly. I suppose if you registered the callback as a named function expression, a good js engine might be able to optimize on it and inline it, but I also don't like leaning on compilers so much.