Russ Cox
unread,Sep 21, 2012, 10:37:58 AM9/21/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to r...@golang.org, r...@golang.org, brad...@golang.org, rogp...@gmail.com, golan...@googlegroups.com, re...@codereview-hr.appspotmail.com
On Fri, Sep 21, 2012 at 5:03 AM, <
r...@golang.org> wrote:
> do you have the updated version?
No, not yet. I am still thinking about what the right resizing
strategy is. I can make the code much faster on the benchmark by
estimating the new array size based on fields/byte processed so far,
cutting out almost all reallocations, but that gives it the chance to
wildly overestimate and overallocate what it would otherwise need. The
current code, while slower by being two passes, at least does not
overallocate. I'm still not quite sure how to balance those. Probably
I will give up that particular speedup and go back to ordinary append.
Russ