diff --git a/src/sharp.cc b/src/sharp.cc index 639a43b0..1e9e7e8c 100755 --- a/src/sharp.cc +++ b/src/sharp.cc @@ -13,12 +13,9 @@ extern "C" void init(v8::Handle 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);