Descriptionruntime: allocate a list of small integers that interfaces can point to.
This change avoids allocations in the case where small integers
are stored in an interface.
benchmark old ns/op new ns/op delta
BenchmarkBinaryTree17 2480757900 2448184501 -1.31%
BenchmarkFannkuch11 2404707156 2369879305 -1.45%
BenchmarkFmtFprintfEmpty 63.1 62.8 -0.48%
BenchmarkFmtFprintfString 173 174 +0.58%
BenchmarkFmtFprintfInt 180 156 -13.33%
BenchmarkFmtFprintfIntInt 288 255 -11.46%
BenchmarkFmtFprintfPrefixedInt 253 233 -7.91%
BenchmarkFmtFprintfFloat 350 351 +0.29%
BenchmarkFmtManyArgs 1088 985 -9.47%
BenchmarkGobDecode 8972467 8907096 -0.73%
BenchmarkGobEncode 7710615 7711389 +0.01%
BenchmarkGzip 353718004 351409270 -0.65%
BenchmarkGunzip 87743203 87268032 -0.54%
BenchmarkHTTPClientServer 67024 69889 +4.27%
BenchmarkJSONEncode 17207806 17357425 +0.87%
BenchmarkJSONDecode 65649590 66194083 +0.83%
BenchmarkMandelbrot200 3731891 3734023 +0.06%
BenchmarkGoParse 3504030 3508157 +0.12%
BenchmarkRegexpMatchEasy0_32 113 115 +1.77%
BenchmarkRegexpMatchEasy0_1K 284 296 +4.23%
BenchmarkRegexpMatchEasy1_32 99.5 98.3 -1.21%
BenchmarkRegexpMatchEasy1_1K 810 818 +0.99%
BenchmarkRegexpMatchMedium_32 186 184 -1.08%
BenchmarkRegexpMatchMedium_1K 63485 62011 -2.32%
BenchmarkRegexpMatchHard_32 3097 3124 +0.87%
BenchmarkRegexpMatchHard_1K 100096 101571 +1.47%
BenchmarkRevcomp 508628203 515428743 +1.34%
BenchmarkTemplate 81041347 81873344 +1.03%
BenchmarkTimeParse 383 380 -0.78%
BenchmarkTimeFormat 344 351 +2.03%
Patch Set 1 #Patch Set 2 : diff -r bb82d18ac07a29431c5d504d9ec354fe6346b0a0 https://khr%40golang.org@code.google.com/p/go/ #
Total comments: 2
Patch Set 3 : diff -r bb82d18ac07a29431c5d504d9ec354fe6346b0a0 https://code.google.com/p/go/ #Patch Set 4 : diff -r bb82d18ac07a29431c5d504d9ec354fe6346b0a0 https://code.google.com/p/go/ #Patch Set 5 : diff -r 9340f9f6dfc9120543617696123f75a3d49a69dd https://code.google.com/p/go/ #Patch Set 6 : diff -r 9340f9f6dfc9120543617696123f75a3d49a69dd https://code.google.com/p/go/ #
Total comments: 2
MessagesTotal messages: 13
|