[MERGE/CHK] Use the page cache during 'check_remap'

John Arbash Meinel john at arbash-meinel.com
Wed Dec 24 16:58:39 GMT 2008


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

This update changes the _check_remap code a little bit, so that it can
avoid unnecessary calls to get_record_stream() during _check_remap.

It also adds some trivial local functions that allow lsprof to show what
the common results of remap are. (Whether it actually does need to
remap, or whether it determines it doesn't need to because of existing
children, etc.)

This patch has a pretty big benefit for conversion speed, because we
have to call check_remap whenever we unmap or an entry shrinks. And
because of the structure, lots of things are in the page cache that
aren't unpacked in the local chk_map. (create_by_apply_delta starts from
an empty chk_map each time.)

If you want, I can get rid of the debugging functions, but they have
been useful from time to time, so I didn't do that automatically.

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAklSaj8ACgkQJdeBCYSNAAO16wCfbMDC1EOKwBz+oh+oDsCZ+bBi
jd8AniJ9khtmGiZaFpVlwOAG99HYreLQ
=1o01
-----END PGP SIGNATURE-----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: brisbane_remap.patch
Url: https://lists.ubuntu.com/archives/bazaar/attachments/20081224/6bd3b4a5/attachment.diff 


More information about the bazaar mailing list