-
-
Notifications
You must be signed in to change notification settings - Fork 35
Closed
Description
While porting the canvas package to NAPI, I found the canvas code calls Nan::AdjustExternalMemory()
in a few places, to give some hints to the V8 GC. That NAN API is a wrapper around v8::Isolate::AdjustAmountOfExternalAllocatedMemory()
. It's not critical for the functionality, but I assume it improves GC behavior significantly when working with large amounts of externally-allocated memory (image buffers in the case of canvas).
This is a V8-specific API; JSRT does not appear to have an equivalent. Do we need to expose it in NAPI? Possibly it could be implemented as a no-op on other engines.
Metadata
Metadata
Assignees
Labels
No labels