Chromium Code Reviews
DescriptionCache locally function templates returned by gin::CreateFunctionTemplate
V8 caches FunctionTemplates for a lifetime of a web page for its own internal
reasons, thus it is generally a good idea to cache the template returned by
gin::CreateFunctionTemplate function. Otherwise, repeated method invocations
from JS will create substantial memory leaks.
BUG=463487
Committed: https://crrev.com/48a180623e4e2b4d3dc32d19281d617603218000
Cr-Commit-Position: refs/heads/master@{#321330}
Patch Set 1 #
Messages
Total messages: 9 (2 generated)
|
|||||||||||||||||||||||||||||||||||||