Optimizing the conversion function bound checks increased overall performance by 14.8%. The benchmarks were also updated to better reflect conversion performance.
Also, runtime.GOMAXPROCS(0) is used instead of runtime.NumCPU() to determine the number of spawned goroutines. This allows clients to limit the number of spawned goroutines, and slightly increases performance.
Optimizing the conversion function bound checks increased overall performance by 14.8%. The benchmarks were also updated to better reflect conversion performance.
Also, runtime.GOMAXPROCS(0) is used instead of runtime.NumCPU() to determine the number of spawned goroutines. This allows clients to limit the number of spawned goroutines, and slightly increases performance.
Test Results