<feed xmlns='http://www.w3.org/2005/Atom'>
<title>go, branch bench-before</title>
<subtitle>Fork of Go programming language with my patches.</subtitle>
<id>http://git.kilabit.info/go/atom?h=bench-before</id>
<link rel='self' href='http://git.kilabit.info/go/atom?h=bench-before'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/'/>
<updated>2024-01-24T21:01:14Z</updated>
<entry>
<title>bufio: realign struct Scanner</title>
<updated>2024-01-24T21:01:14Z</updated>
<author>
<name>Shulhan</name>
<email>m.shulhan@gmail.com</email>
</author>
<published>2023-09-16T16:18:02Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=004f47502ca074bd2591e215512fd2e18bd8659a'/>
<id>urn:sha1:004f47502ca074bd2591e215512fd2e18bd8659a</id>
<content type='text'>
This reduce the Scanner allocation size from 112 to 72 bytes.
</content>
</entry>
<entry>
<title>bufio: realign struct Reader</title>
<updated>2024-01-24T21:01:14Z</updated>
<author>
<name>Shulhan</name>
<email>m.shulhan@gmail.com</email>
</author>
<published>2023-09-16T16:17:48Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=8d542a8e8899ca4b1aa5b1d112c83f13c6ecb535'/>
<id>urn:sha1:8d542a8e8899ca4b1aa5b1d112c83f13c6ecb535</id>
<content type='text'>
This reduce the Reader allocation size from 72 to 40 bytes and
Writer allocation size from 64 to 40 bytes.
</content>
</entry>
<entry>
<title>mime/quotedprintable: fix encoding where a period alone on a line</title>
<updated>2024-01-24T21:01:14Z</updated>
<author>
<name>Shulhan</name>
<email>m.shulhan@gmail.com</email>
</author>
<published>2023-07-08T07:54:24Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=7940d5316aa895ad8da5140bb347f193f795e52f'/>
<id>urn:sha1:7940d5316aa895ad8da5140bb347f193f795e52f</id>
<content type='text'>
Given the following example of message body,

  A line that precisely have length 75 with . + LF will cause DATA truncation.\n
  \n
  Footer.\n

The quotedprintable Writer will encode the message into,

  A line ... truncation=\r\n
  .\r\n
  \r\n
  Footer.\r\n

If we pass the Writer output into SMTP DATA command, the server read
the "\r\n.\r\n" as the end of DATA which cause the message truncated
on the receiver.

This changes fix this issue by encode the period at the end with "=2E"
based on recommendation in RFC 2049 Section 3, point (8) [1].

[1] https://www.rfc-editor.org/rfc/rfc2049.html#section-3

Fixes #61235

Change-Id: I350387b183ac6b25886f4084a060dcfcb48232a9
</content>
</entry>
<entry>
<title>encoding/json: optimize isValidNumber function</title>
<updated>2024-01-24T21:01:14Z</updated>
<author>
<name>Shulhan</name>
<email>m.shulhan@gmail.com</email>
</author>
<published>2022-08-26T14:48:21Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=e7b9ecb7a2ccb9d48da849a37bdb347b7de8f042'/>
<id>urn:sha1:e7b9ecb7a2ccb9d48da849a37bdb347b7de8f042</id>
<content type='text'>
Instead of re-slicing the string for checking the value, use single
index variable.

Benchmark result,

name             old time/op    new time/op    delta
NumberIsValid-8  19.0ns ± 0%    14.5ns ± 1%  -23.70%  (p=0.008 n=5+5)

name             old alloc/op   new alloc/op   delta
NumberIsValid-8   0.00B          0.00B          ~     (all equal)

name             old allocs/op  new allocs/op  delta
NumberIsValid-8    0.00           0.00          ~     (all equal)

Change-Id: I4698c5db134998f83ff47fb3add6a04ba6ec3aa0
</content>
</entry>
<entry>
<title>testing: change the FAIL and SKIP prefix to "!!!" and "???"</title>
<updated>2024-01-24T21:01:14Z</updated>
<author>
<name>Shulhan</name>
<email>m.shulhan@gmail.com</email>
</author>
<published>2023-12-02T18:06:29Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=65f7032d4ed53d7e8d605d72b294527a0eef6740'/>
<id>urn:sha1:65f7032d4ed53d7e8d605d72b294527a0eef6740</id>
<content type='text'>
Previously, there are three output of message printed by test or
benchmark: PASS, SKIP, or FAIL.  All of them use the same prefix "---".
In case we have a module that run many many tests, it's become hard to
differentiate between PASS, SKIP, and FAIL.

This changes differentiate the SKIP and FAIL using different prefix.
For SKIP we prefix it with "???", for FAIL we prefix it with "!!!".
</content>
</entry>
<entry>
<title>all: prealloc slice with possible minimum capabilities</title>
<updated>2024-01-24T21:01:14Z</updated>
<author>
<name>Shulhan</name>
<email>m.shulhan@gmail.com</email>
</author>
<published>2023-05-01T18:06:11Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=8096b47dd09fcda8712f7a3c07dced5244123a4d'/>
<id>urn:sha1:8096b47dd09fcda8712f7a3c07dced5244123a4d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>encoding/binary: add benchmark for writing slice of uint8</title>
<updated>2024-01-24T21:01:14Z</updated>
<author>
<name>Shulhan</name>
<email>m.shulhan@gmail.com</email>
</author>
<published>2018-10-19T17:27:54Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=54386c4a7e68ab281545116220600f670e8f9e14'/>
<id>urn:sha1:54386c4a7e68ab281545116220600f670e8f9e14</id>
<content type='text'>
</content>
</entry>
<entry>
<title>all: add Makefile to rebuild go and other tools from source</title>
<updated>2024-01-24T21:01:14Z</updated>
<author>
<name>Shulhan</name>
<email>m.shulhan@gmail.com</email>
</author>
<published>2019-03-06T19:38:12Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=f27c66c1f18522a75ddad61913176da3b24ed08c'/>
<id>urn:sha1:f27c66c1f18522a75ddad61913176da3b24ed08c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Revert "archive/tar: add FileInfoNames interface"</title>
<updated>2024-01-24T20:54:27Z</updated>
<author>
<name>Cherry Mui</name>
<email>cherryyz@google.com</email>
</author>
<published>2024-01-24T20:00:47Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=5000b5168037d26a796da46a07088e834c3af1a0'/>
<id>urn:sha1:5000b5168037d26a796da46a07088e834c3af1a0</id>
<content type='text'>
This reverts CL 514235. Also reverts CL 518056 which is a followup
fix.

Reason for revert: Proposal #50102 defined an interface that is
too specific to UNIX-y systems and also didn't make much sense.
The proposal is un-accepted, and we'll revisit in Go 1.23.

Fixes (via backport) #65245.
Updates #50102.

Change-Id: I41ba0ee286c1d893e6564a337e5d76418d19435d
Reviewed-on: https://go-review.googlesource.com/c/go/+/558295
Reviewed-by: Dmitri Shuralyov &lt;dmitshur@golang.org&gt;
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Reviewed-by: Dmitri Shuralyov &lt;dmitshur@google.com&gt;
</content>
</entry>
<entry>
<title>net: ignore Dial errors in TestAcceptTimeout</title>
<updated>2024-01-24T18:06:55Z</updated>
<author>
<name>Bryan C. Mills</name>
<email>bcmills@google.com</email>
</author>
<published>2024-01-23T22:08:50Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=749ebaa4460af237f9facbc43af3e055802dc0be'/>
<id>urn:sha1:749ebaa4460af237f9facbc43af3e055802dc0be</id>
<content type='text'>
Also use DialContext instead of just Dial so that we can ensure
the call returns before we close the listener.

The Dial in this test is intended to complete before the call to
Accept, but there is no synchronization to ensure that and sometimes
it doesn't happen. That's ok and mostly immaterial to the test, but it
does mean we need to ignore Dial errors (which can happen when the
listener is closed), and we need to be a little more careful about not
dialing a port that may have already been reused by some other test.

Fixes #65240.
Updates #17948.

Change-Id: Ife1b5c3062939441b58f4c096461bf5d7841889b
Reviewed-on: https://go-review.googlesource.com/c/go/+/558175
Reviewed-by: Damien Neil &lt;dneil@google.com&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Run-TryBot: Bryan Mills &lt;bcmills@google.com&gt;
Auto-Submit: Bryan Mills &lt;bcmills@google.com&gt;
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
</content>
</entry>
</feed>
