mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 18:40:16 +02:00
Remove lingering NanAdjustExternalMemory
Should have been removed in fe34548b
This commit is contained in:
parent
8f41fed9c2
commit
0e91ca90d6
@ -13,12 +13,9 @@ extern "C" void init(v8::Handle<v8::Object> target) {
|
||||
vips_init("sharp");
|
||||
|
||||
// Set libvips operation cache limits
|
||||
vips_cache_set_max_mem(100 * 1048576); // 100 MB
|
||||
vips_cache_set_max_mem(100 * 1024 * 1024); // 100 MB
|
||||
vips_cache_set_max(500); // 500 operations
|
||||
|
||||
// Notify the V8 garbage collector of max cache size
|
||||
NanAdjustExternalMemory(vips_cache_get_max_mem());
|
||||
|
||||
// Methods available to JavaScript
|
||||
NODE_SET_METHOD(target, "metadata", metadata);
|
||||
NODE_SET_METHOD(target, "resize", resize);
|
||||
|
Loading…
x
Reference in New Issue
Block a user