Faster knit extraction

Aaron Bentley aaron.bentley at utoronto.ca
Tue Feb 20 12:58:21 GMT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Aaron Bentley wrote:
> John, I think you were wondering about a way to apply several patches in
> one pass, to avoid doing insertion in lists of lines.

I should add that I think it's relatively easy to define get_range(),
rather than get_line(), which should be faster, as it requires fewer
per-line operations.  (Basically, you'd be calling list.extend(segment)
a lot, so the extend is a per-line op.)

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF2vBt0F+nu1YWqI0RAvp9AJ4rnKr48qQ4c1cgGhFpWG0X5RHSaACgghuH
82XFCLU2LJS1EVZlscFcirg=
=9/2D
-----END PGP SIGNATURE-----



More information about the bazaar mailing list