On Tue, Aug 18, 2015 at 9:14 PM, Gavin Glynn <[email protected]> wrote: > Thanks for that. The problem is that all my entries are actual methods - not > properties.
That doesn't matter, methods are properties too in JS. The idea is that you defer creating the FunctionTemplate and function object until the JS code needs it. That's assuming most code won't call all 200 methods (and even then - spreading out the cost may be a better user experience.) > In retrospect, I don't think caching the template will be > helpful. It only took about 30ms to form the template. It was the > v8::Context::New operation that took 350ms.... :) Have you tried checking with perf(1) where V8 spends its time? -- -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
