瀏覽代碼

Enable vector optimizations in vips

DarthSim 2 年之前
父節點
當前提交
aad0186b0a
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1 3
      vips/vips.go

+ 1 - 3
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))