浏览代码

Removed mention of runtime.GOMAXPROCS - not needed after Go 1.5

disintegration 10 年之前
父节点
当前提交
493653de80
共有 2 个文件被更改,包括 0 次插入8 次删除
  1. 0 3
      README.md
  2. 0 5
      helpers.go

+ 0 - 3
README.md

@@ -123,14 +123,11 @@ package main
 import (
     "image"
     "image/color"
-    "runtime"
     
     "github.com/disintegration/imaging"
 )
 
 func main() {
-    // use all CPU cores for maximum performance
-    runtime.GOMAXPROCS(runtime.NumCPU())
 
     // input files
     files := []string{"01.jpg", "02.jpg", "03.jpg"}

+ 0 - 5
helpers.go

@@ -5,11 +5,6 @@ This package is based on the standard Go image package and works best along with
 Image manipulation functions provided by the package take any image type
 that implements `image.Image` interface as an input, and return a new image of
 `*image.NRGBA` type (32bit RGBA colors, not premultiplied by alpha).
-
-Imaging package uses parallel goroutines for faster image processing.
-To achieve maximum performance, make sure to allow Go to utilize all CPU cores:
-
-	runtime.GOMAXPROCS(runtime.NumCPU())
 */
 package imaging