FAQ

On Sunday, April 3, 2016 at 1:09:00 PM UTC+2, klau...@gmail.com wrote:
On Friday, 1 April 2016 12:04:41 UTC+2, Alexandru Moșoi wrote:

I've updated the doc
<https://docs.google.com/document/d/1vdAEAjYdzjnPA9WDOQ1e4e05cYVMpqSxJYZT33Cqw2g/edit?usp=sharing>
based on the recent compiler improvements.

In particular the following examples are working as expected.

// using a hint
_ = a[3] // early bounds check
use a[1], a[2], a[3] // no bounds checks
This is really great. I already have a few places where this will help,
particularly places like this:


https://github.com/golang/go/blob/master/src/compress/flate/huffman_bit_writer.go#L296

and this:

https://github.com/golang/go/blob/master/src/compress/flate/deflate.go#L273
Make also sure to check that the generated code compacts multiple byte
reads/writes to a single word access.

Giovanni

--
You received this message because you are subscribed to the Google Groups "golang-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 9 of 15 | next ›
Discussion Overview
groupgolang-dev @
categoriesgo
postedMar 17, '16 at 3:08p
activeApr 11, '16 at 2:00a
posts15
users6
websitegolang.org

People

Translate

site design / logo © 2021 Grokbase