• Rob Pike's avatar
    encoding/gob: simplify allocation in decode. · ce5bbfdd
    Rob Pike authored
    The old code's structure needed to track indirections because of the
    use of unsafe. That is no longer necessary, so we can remove all
    that tracking. The code cleans up considerably but is a little slower.
    We may be able to recover that performance drop. I believe the
    code quality improvement is worthwhile regardless.
    
    BenchmarkEndToEndPipe           5610          5780          +3.03%
    BenchmarkEndToEndByteBuffer     3156          3222          +2.09%
    
    LGTM=rsc
    R=rsc
    CC=golang-codereviews
    https://golang.org/cl/103700043
    ce5bbfdd
Name
Last commit
Last update
api Loading commit data...
doc Loading commit data...
include Loading commit data...
lib Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...