From aad0186b0a28bb5c79242cc4e3ed43dc3166a648 Mon Sep 17 00:00:00 2001 From: DarthSim Date: Wed, 17 May 2023 13:42:30 +0300 Subject: [PATCH] Enable vector optimizations in vips --- vips/vips.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/vips/vips.go b/vips/vips.go index 39949e33..2dee4b68 100644 --- a/vips/vips.go +++ b/vips/vips.go @@ -62,9 +62,7 @@ func Init() error { C.vips_concurrency_set(1) - // Vector calculations cause SIGSEGV sometimes when working with JPEG. - // It's better to disable it since profit it quite small - C.vips_vector_set_enabled(0) + C.vips_vector_set_enabled(1) if len(os.Getenv("IMGPROXY_VIPS_LEAK_CHECK")) > 0 { C.vips_leak_set(C.gboolean(1))