~bzr-pqm/bzr/bzr.dev

Viewing all changes in revision 2485.3.3.

  • Committer: John Arbash Meinel
  • Date: 2007-05-15 23:27:20 UTC
  • mto: This revision was merged to the branch mainline in revision 2499.
  • Revision ID: john@arbash-meinel.com-20070515232720-4alrtd5q4p4m3q1r
Avoid extra work in inner 'DirState.update_entry' code.
Use local vars for most functinos, directly lookup in local dict rather
than going through osutils.stat_to_file_kind.
Require the stat to be passed in, rather than being optional.
change pack_stat to use binascii.b2a_base64 (the underlying function)
Move pack_stat to top of code, so it can be saved as local variable.
This cuts the time spent in update_entry to 1/2.
Avoiding pack_stat is also a potentially large win. (5% or so)

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: