Skip to content

v0.1.11

Compare
Choose a tag to compare
@st0012 st0012 released this 13 Oct 09:56
· 238 commits to master since this release

Noticeable Changes

New APIs

API changes

  • Integer#time now returns an Enumerator - @st0012

Performance improvements

The overall performance is now 2x faster and object allocations and memory usage are reduced to half.

benchmarking e22beaebdea18ea8670d98d56f4e4f39eed444e8
benchmarking 587f1c8dadd5adec3c16642ae3133504682f4d5c
go get: warning: modules disabled by GO111MODULE=auto in GOPATH/src;
        ignoring go.mod;
        see 'go help modules'
x86_64-darwin18
benchmark                         old ns/op     new ns/op     delta
BenchmarkBasicMath/add-4          5650          3357          -40.58%
BenchmarkBasicMath/subtract-4     5592          2740          -51.00%
BenchmarkBasicMath/multiply-4     5687          2786          -51.01%
BenchmarkBasicMath/divide-4       5661          2757          -51.30%

benchmark                         old allocs     new allocs     delta
BenchmarkBasicMath/add-4          75             33             -56.00%
BenchmarkBasicMath/subtract-4     75             33             -56.00%
BenchmarkBasicMath/multiply-4     75             33             -56.00%
BenchmarkBasicMath/divide-4       75             33             -56.00%

benchmark                         old bytes     new bytes     delta
BenchmarkBasicMath/add-4          3152          1568          -50.25%
BenchmarkBasicMath/subtract-4     3152          1568          -50.25%
BenchmarkBasicMath/multiply-4     3152          1568          -50.25%
BenchmarkBasicMath/divide-4       3152          1568          -50.25%

Big thanks to @eliothedeman for the significant improvement 🎉

Other changes

There are a lot of refactoring/code reorganization/bug fixes in this version as well. They’re mainly done by @hachi8833, @ear7h and @saveriomiroddi