Browse Source

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

disintegration 10 years ago
parent
commit
493653de80
2 changed files with 0 additions and 8 deletions
  1. 0 3
      README.md
  2. 0 5
      helpers.go

+ 0 - 3
README.md

@@ -123,14 +123,11 @@ package main
 import (
 import (
     "image"
     "image"
     "image/color"
     "image/color"
-    "runtime"
     
     
     "github.com/disintegration/imaging"
     "github.com/disintegration/imaging"
 )
 )
 
 
 func main() {
 func main() {
-    // use all CPU cores for maximum performance
-    runtime.GOMAXPROCS(runtime.NumCPU())
 
 
     // input files
     // input files
     files := []string{"01.jpg", "02.jpg", "03.jpg"}
     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
 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
 that implements `image.Image` interface as an input, and return a new image of
 `*image.NRGBA` type (32bit RGBA colors, not premultiplied by alpha).
 `*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
 package imaging