~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/chk_map.py

  • Committer: John Arbash Meinel
  • Date: 2010-05-11 10:45:26 UTC
  • mto: This revision was merged to the branch mainline in revision 5225.
  • Revision ID: john@arbash-meinel.com-20100511104526-zxnstcxta22hzw2n
Implement a compiled extension for parsing the text key out of a CHKInventory value.

Related to bug #562666. This seems to shave 5-10% out of the time spent doing a complete
branch of bzr.dev/launchpad/etc.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1727
1727
 
1728
1728
try:
1729
1729
    from bzrlib._chk_map_pyx import (
 
1730
        _bytes_to_text_key,
1730
1731
        _search_key_16,
1731
1732
        _search_key_255,
1732
1733
        _deserialise_leaf_node,
1735
1736
except ImportError, e:
1736
1737
    osutils.failed_to_load_extension(e)
1737
1738
    from bzrlib._chk_map_py import (
 
1739
        _bytes_to_text_key,
1738
1740
        _search_key_16,
1739
1741
        _search_key_255,
1740
1742
        _deserialise_leaf_node,