[darcs-devel] darcs patch: (Re)upgrade createPS and generatePS to D... (and 8 more)
David Roundy
droundy at darcs.net
Wed Feb 6 16:48:52 UTC 2008
On Wed, Feb 06, 2008 at 11:44:42AM -0500, David Roundy wrote:
> > Maybe we can egg on the bytestring people and get them to submit
> > patches taking this further down (for example, they could improve our
> > between newlines and nth newline stuff).
>
> That'd be nice.
I should note, though, that we can also make probably faster progress by
simply reducing the dependency on the counting of lines. In particular,
I'd like to change Hunk to store a new and old PackedString + line number
counts, rather than storing new and old [PackedString]. We'd still need to
find the nth newline, etc, but we'd use much less memory and probably be
faster to boot. Even better when we introduce (maybe before darcs 2 is
released?) a new hunk file format that doesn't have all those +'s and -'s.
Then parsing is lightning fast and we won't need duplicate copies of the
hunk data in memory.
--
David Roundy
Department of Physics
Oregon State University
More information about the darcs-devel
mailing list