I don't know which cache you are talking about. Afaik there's only a "function-template-instantations-cache". That caches JSFunctions per native context resulting from instantiating a function template.
On Mon, Nov 21, 2016 at 12:05 PM Ben Noordhuis <[email protected]> wrote: > On Sun, Nov 20, 2016 at 11:09 PM, <[email protected]> wrote: > > Jochen Eisinger said that "v8 has an per-isolate cache of function > > templates". I have a few questions about this cache: > > > > If I create multiple FunctionTemplates with different callback data but > the > > same callback function and everything else, does it only create one > function > > template and use the cache for the rest? > > If not, why does the cache exist? > > > > ~Theodore > > It creates multiple function templates. The cache is to speed up > template instantiation, not template creation. > > -- > -- > 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. > -- -- 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.
