Join GitHub today
lib: faster type checks for some types #15663
The JS<->C++ overhead is fairly high with TurboFan. If there is a way to do a reliable and performant type check in JS, use JS instead.
This PR introduces a new internal module that also protects against modification of the global environment by caching all utilized functions at Node.js startup.
Affected core subsystem(s)
No; this PR has two parts:
The change about
@TimothyGu At this point,
TypedArray.prototype[Symbol.toStringTag] is not really fast in V8. It's also not super-slow. I'll try to get that fixed and inlined next week.
As for this particular PR, I'm not sure
uncurryThis is really optimized fully with V8 6.1.
pushed a commit
this pull request
Sep 30, 2017
@bmeurer thanks for taking a look!
Yeah I realized. The