- 28 Sep, 2011 4 commits
-
-
Russ Cox authored
MatchEasy0_1K 500000 4207 ns/op 243.35 MB/s MatchEasy0_1K_Old 500000 4625 ns/op 221.40 MB/s MatchEasy0_1M 500 3948932 ns/op 265.53 MB/s MatchEasy0_1M_Old 500 3943926 ns/op 265.87 MB/s MatchEasy0_32K 10000 122974 ns/op 266.46 MB/s MatchEasy0_32K_Old 10000 123270 ns/op 265.82 MB/s MatchEasy0_32M 10 127265400 ns/op 263.66 MB/s MatchEasy0_32M_Old 10 127123500 ns/op 263.95 MB/s MatchEasy1_1K 500000 5637 ns/op 181.63 MB/s MatchEasy1_1K_Old 10000 100690 ns/op 10.17 MB/s MatchEasy1_1M 200 7683150 ns/op 136.48 MB/s MatchEasy1_1M_Old 10 145774000 ns/op 7.19 MB/s MatchEasy1_32K 10000 239887 ns/op 136.60 MB/s MatchEasy1_32K_Old 500 4508182 ns/op 7.27 MB/s MatchEasy1_32M 10 247103500 ns/op 135.79 MB/s MatchEasy1_32M_Old 1 4660191000 ns/op 7.20 MB/s MatchMedium_1K 10000 160567 ns/op 6.38 MB/s MatchMedium_1K_Old 10000 158367 ns/op 6.47 MB/s MatchMedium_1M 10 162928000 ns/op 6.44 MB/s MatchMedium_1M_Old 10 159699200 ns/op 6.57 MB/s MatchMedium_32K 500 5090758 ns/op 6.44 MB/s MatchMedium_32K_Old 500 5005800 ns/op 6.55 MB/s MatchMedium_32M 1 5233973000 ns/op 6.41 MB/s MatchMedium_32M_Old 1 5109676000 ns/op 6.57 MB/s MatchHard_1K 10000 249087 ns/op 4.11 MB/s MatchHard_1K_Old 5000 364569 ns/op 2.81 MB/s MatchHard_1M 5 256050000 ns/op 4.10 MB/s MatchHard_1M_Old 5 372446400 ns/op 2.82 MB/s MatchHard_32K 200 7944525 ns/op 4.12 MB/s MatchHard_32K_Old 100 11609380 ns/op 2.82 MB/s MatchHard_32M 1 8144503000 ns/op 4.12 MB/s MatchHard_32M_Old 1 11885434000 ns/op 2.82 MB/s R=r, bradfitz CC=golang-dev https://golang.org/cl/5134049
-
Yasuhiro Matsumoto authored
Fixes #2243. R=rsc CC=golang-dev https://golang.org/cl/5146041
-
Brad Fitzpatrick authored
R=golang-dev, rsc, iant CC=golang-dev https://golang.org/cl/5136052
-
Mike Samuel authored
In {{$x := . | foo}} {{$x}} the first action is a variable assignment that contributes nothing to the output while the first is a use that needs to be escaped. This CL fixes escapeAction to distinguish assignments from interpolations and to only modify interpolations. R=nigeltao, r CC=golang-dev https://golang.org/cl/5143048
-
- 27 Sep, 2011 8 commits
-
-
Robert Griesemer authored
CL 5040041 (https://golang.org/cl/5040041) changed the use of []int to []int32 internally so that encoding/binary could be used. This is no longer needed (gobs can encode ints), and using []int is more in sync w/ the semantics of the data structure (the index elements are indices which are ints). Changing it back. R=r CC=golang-dev https://golang.org/cl/5141049
-
Mike Samuel authored
Does some TODOs and changes the term "div" in an error message to "division" to avoid confusion with "<div>". R=nigeltao, r CC=golang-dev https://golang.org/cl/5141047
-
Rob Pike authored
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5136047
-
Rob Pike authored
Error found by govet. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5142048
-
Russ Cox authored
Fixes #2308. R=agl, gri CC=golang-dev https://golang.org/cl/5121052
-
Russ Cox authored
TBR=bradfitz CC=golang-dev https://golang.org/cl/5124049
-
Ian Lance Taylor authored
Fixes #2309. R=rsc, bradfitz CC=golang-dev https://golang.org/cl/5128053
-
Robert Griesemer authored
- don't use range over string to copy string bytes - some code simplification R=mpvl CC=golang-dev https://golang.org/cl/5144044
-
- 26 Sep, 2011 17 commits
-
-
Russ Cox authored
R=golang-dev, r CC=golang-dev, ukai https://golang.org/cl/5140046
-
Russ Cox authored
R=golang-dev, r, r CC=golang-dev https://golang.org/cl/5123047
-
Russ Cox authored
Add copyright notice to nilptr.go. R=golang-dev, r CC=golang-dev https://golang.org/cl/5139048
-
Rob Pike authored
Fixes #2301. R=golang-dev, gri CC=golang-dev https://golang.org/cl/5134048
-
Russ Cox authored
R=golang-dev, r CC=golang-dev https://golang.org/cl/5127042
-
Russ Cox authored
Case-insensitive strcmp without using ToLower. (Using ToLower is not always correct, and it allocates.) R=golang-dev, r CC=golang-dev https://golang.org/cl/5143044
-
Russ Cox authored
Also work around Mercurial issue 3023. If anyone has local changes in their repo (due to patch queues or whatever) stop them from leaking into the main repository. R=golang-dev, r CC=golang-dev https://golang.org/cl/5144043
-
Russ Cox authored
Also reject literal newline in " and ' quoted strings. R=golang-dev, r CC=golang-dev https://golang.org/cl/5139045
-
Russ Cox authored
The 512 MB array causes load delays on some systems. Now that we have recover, we can do all the tests in one binary, so that the delay is incurred just once. R=golang-dev, r CC=golang-dev https://golang.org/cl/5142044
-
Russ Cox authored
Alex Brainman reports that this is the only test that keeps us from running test/run. R=alex.brainman, lucio.dere, bradfitz, hectorchu CC=golang-dev https://golang.org/cl/4777043
-
Russ Cox authored
R=r CC=golang-dev https://golang.org/cl/5131044
-
Russ Cox authored
Fixes #2277. R=dvyukov, r CC=golang-dev https://golang.org/cl/5083044
-
Dave Cheney authored
R=agl CC=golang-dev https://golang.org/cl/5132041
-
Mike Samuel authored
This makes sure that all JS newlines are encoded in JSON. It also moots a TODO about possibly escaping supplemental codepoints. I served: Content-Type: text/javascript;charset=UTF-8 var s = "%s"; document.write("<p>", s, "</p><ol>"); for (var i = 0; i < s.length; i++) { document.write("<li>", s.charCodeAt(i).toString(16), "</li>"); } document.write("</l>"); where %s was replaced with bytes "\xf0\x9d\x84\x9e" to test straight UTF-8 instead of encoding surrogates separately. Recent Firefox, Chrome, and Safari all decoded it properly. I have yet to try it on IE or older versions. R=nigeltao CC=golang-dev https://golang.org/cl/5129042
-
Mike Samuel authored
The template "<a=" caused an infinite loop in escape text. The change to tTag fixes that and the change to escape.go causes escapeText to panic on any infinite loop that does not involve a state cycle. R=nigeltao CC=golang-dev https://golang.org/cl/5115041
-
Mike Samuel authored
HTML parsers may differ on whether <input id= onchange=f( ends in id's or onchange's value, <a class=`foo ends inside a value, <input style=font:'Arial' needs open-quote fixup. Per http://www.w3.org/TR/html5/tokenization.html#attribute-value-unquoted-state this treats the error cases in 8.2.4.40 Attribute value (unquoted) state as fatal errors. \> U+0022 QUOTATION MARK (") \> U+0027 APOSTROPHE (') \> U+003C LESS-THAN SIGN (<) \> U+003D EQUALS SIGN (=) \> U+0060 GRAVE ACCENT (`) Parse error. Treat it as per the "anything else" entry below. and emits ErrBadHTML. R=nigeltao CC=golang-dev https://golang.org/cl/5085050
-
Mike Samuel authored
R=nigeltao CC=golang-dev https://golang.org/cl/5128041
-
- 25 Sep, 2011 2 commits
-
-
Gustavo Niemeyer authored
R=golang-dev, rsc, adg CC=golang-dev https://golang.org/cl/5124044
-
David G. Andersen authored
The example incorrectly dereferenced an integer variable R=golang-dev, adg CC=golang-dev https://golang.org/cl/5129041
-
- 24 Sep, 2011 2 commits
-
-
Ian Lance Taylor authored
bug340.go:14:7: error: expected type bug340.go:15:4: error: reference to undefined field or method ‘x’ bug350.go:12:1: error: redefinition of ‘m’ bug350.go:11:1: note: previous definition of ‘m’ was here bug350.go:15:1: error: redefinition of ‘p’ bug350.go:14:1: note: previous definition of ‘p’ was here bug351.go:12:6: error: non-name on left side of ‘:=’ R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5127041
-
Jaroslavas Počepko authored
syscall: mksyscall_windows.pl to produce packages other than syscall (for example pkg/exp/wingui/zwinapi.go) R=golang-dev, alex.brainman, rsc CC=golang-dev https://golang.org/cl/4964074
-
- 23 Sep, 2011 7 commits
-
-
Brad Fitzpatrick authored
Fixes #2300 R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5117041
-
Mike Samuel authored
R=nigeltao CC=golang-dev https://golang.org/cl/5076049
-
Eric Eisner authored
R=gri, jeff CC=golang-dev https://golang.org/cl/5040048
-
Mikio Hara authored
R=golang-dev, fullung, dave, rsc CC=golang-dev https://golang.org/cl/5081044
-
Mikio Hara authored
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5039042
-
Mikio Hara authored
R=fullung, rsc CC=golang-dev https://golang.org/cl/5034044
-
Luuk van Dijk authored
The Dwarf info has the full typenames, the go *struct runtime.commonType has the short name. A more permanent fix would link the two together but this way the user gets useable stack traces for now. R=rsc CC=golang-dev https://golang.org/cl/5097046
-