Ilya Tocar
91102bf723
runtime: use bytes.IndexByte in findnull
...
bytes.IndexByte is heavily optimized. Use it in findnull.
This is second attempt, similar to CL97523.
In this version we never call IndexByte on region of memory,
that crosses page boundary. A bit slower than CL97523,
but still fast:
name old time/op new time/op delta
GoString-6 164ns ± 2% 118ns ± 0% -28.00% (p=0.000 n=10+6)
findnull is also used in gostringnocopy,
which is used in many hot spots in the runtime.
Fixes #23830
Change-Id: Id843dd4f65a34309d92bdd8df229e484d26b0cb2
Reviewed-on: https://go-review.googlesource.com/98015
Run-TryBot: Ilya Tocar <ilya.tocar@intel.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-03-09 19:37:39 +00:00
..
2016-05-02 13:43:18 +00:00
2016-08-31 06:30:26 +00:00
2016-05-02 13:43:18 +00:00
2014-11-03 13:41:03 -05:00
2018-02-12 21:41:32 +00:00
2015-11-14 18:56:17 +00:00
2015-11-14 18:56:17 +00:00
2017-06-13 18:36:04 +00:00
2012-01-24 14:48:15 -05:00
2016-11-01 23:06:24 +00:00
2014-12-24 00:18:21 +00:00
2018-03-09 19:37:39 +00:00
2018-01-11 19:55:49 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-10-19 21:20:50 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-06-01 22:06:51 +00:00
2018-03-09 19:37:39 +00:00
2016-10-13 00:03:57 +00:00
2016-12-05 18:46:18 +00:00
2016-10-21 20:46:20 +00:00
2016-10-05 17:44:27 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-06-02 10:09:12 +00:00
2016-05-02 13:43:18 +00:00
2015-10-13 17:53:20 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-06-01 22:06:51 +00:00
2016-05-02 13:43:18 +00:00
2018-02-02 18:42:10 +00:00
2018-02-02 18:42:10 +00:00
2016-05-02 13:43:18 +00:00
2012-09-20 13:20:33 +10:00
2012-09-20 13:20:33 +10:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2013-09-11 09:56:38 -04:00
2016-05-02 13:43:18 +00:00
2013-09-11 09:56:38 -04:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2017-04-07 21:09:44 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2017-11-15 03:36:54 +00:00
2017-11-15 03:36:54 +00:00
2017-11-15 03:36:54 +00:00
2016-06-01 22:06:51 +00:00
2016-06-01 22:06:51 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2017-09-13 02:53:11 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2014-10-09 16:10:51 +11:00
2014-10-09 16:10:51 +11:00
2014-10-09 16:10:51 +11:00
2016-06-01 22:06:51 +00:00
2016-08-31 06:30:26 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2014-10-15 13:13:37 -07:00
2016-05-02 13:43:18 +00:00
2014-11-03 13:41:03 -05:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-05-02 13:43:18 +00:00
2016-09-11 20:43:11 +00:00
2016-12-14 00:59:38 +00:00
2016-12-01 02:13:50 +00:00
2017-01-20 21:12:54 +00:00
2017-08-30 18:28:58 +00:00
2017-06-27 23:02:34 +00:00
2017-06-13 18:36:04 +00:00
2017-05-17 14:42:29 +00:00
2017-08-16 21:57:56 +00:00
2017-08-16 21:57:56 +00:00
2017-08-29 00:42:34 +00:00
2017-09-01 00:42:21 +00:00
2017-10-03 16:16:30 +00:00
2017-11-17 22:11:03 +00:00
2017-11-17 22:11:03 +00:00
2017-12-01 23:50:23 +00:00
2018-03-09 19:37:39 +00:00
2018-03-09 19:37:39 +00:00
2016-05-02 13:43:18 +00:00
2017-01-20 21:12:19 +00:00
2016-04-15 21:20:45 +00:00
2016-04-15 21:20:45 +00:00
2017-12-08 16:13:14 +00:00