1
0
mirror of https://github.com/golang/go synced 2024-11-12 06:30:21 -07:00
The Go programming language
Go to file
Kyle Consalus aae02a1855 Optimization to regexp _CharClass: keep track of overall range of
charclass to avoid unnecessarily iterating over ranges.
    Also, use the fact that IntVector is an []int to avoid method calls.
    On my machine, this brings us from ~27500 ns/op to ~17500 ns/op in the benchmark I've added (it is also faster in the case where a range check
    doesn't help, added a benchmark for this too.)

    I'd also like to propose that "[]", and "[^]" be disallowed. They aren't useful as far as I can tell, they aren't widely supported, and they make reasoning about character classes a bit more complicated.

R=r
CC=golang-dev
https://golang.org/cl/1495041
2010-06-02 23:04:44 -07:00
doc doc: codereview + Mercurial Queues 2010-06-02 17:11:52 -07:00
include Fix *l/*c -V flag segfault 2010-02-08 11:53:27 -08:00
lib golang.org: added Resources page, re-organized left hand panel. 2010-05-27 16:47:42 -07:00
misc godashboard: change behaviour of top button 2010-05-25 14:22:12 -07:00
pkg more description 2009-10-15 23:08:46 -07:00
src Optimization to regexp _CharClass: keep track of overall range of 2010-06-02 23:04:44 -07:00
test bug284: additional conversion test case 2010-06-02 10:36:19 -07:00
.hgignore rename cgo2c to goc2c in ignored list 2010-04-26 22:49:14 -07:00
.hgtags release.2010-05-27 tag 2010-05-27 16:52:46 -07:00
AUTHORS A+C: added Daniel Fleischman 2010-06-02 16:49:25 +02:00
CONTRIBUTORS A+C: added Daniel Fleischman 2010-06-02 16:49:25 +02:00
favicon.ico add a favicon plus a couple of hi-res versions of gordon 2009-10-26 10:13:07 -07:00
LICENSE Add an explicit patent grant to the Go license. 2010-01-25 15:39:32 -08:00
README add a README file, so that if someone finds a 2009-11-08 09:57:37 -08:00

This is the source code repository for the Go programming language.  

For documentation about how to install and use Go,
visit http://golang.org/ or load doc/install.html in your web browser.

After installing Go, you can view a nicely formatted
doc/install.html by running godoc --http=:6060
and then visiting http://localhost:6060/doc/install.html.

Unless otherwise noted, the Go source files are distributed
under the BSD-style license found in the LICENSE file.