~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/__init__.py

  • Committer: Andrew Bennetts
  • Date: 2008-02-18 08:30:38 UTC
  • mto: This revision was merged to the branch mainline in revision 3756.
  • Revision ID: andrew.bennetts@canonical.com-20080218083038-tts55zsx5xrz3l2e
Lots of assorted hackery to reduce the number of imports for common operations.  Improves 'rocks', 'st' and 'help' times by ~50ms on my laptop.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""bzr library"""
18
18
 
 
19
#from bzrlib.osutils import get_user_encoding
19
20
import time
20
21
 
21
22
# Keep track of when bzrlib was first imported, so that we can give rough
22
23
# timestamps relative to program start in the log file kept by bzrlib.trace.
23
24
_start_time = time.time()
24
25
 
25
 
from bzrlib.osutils import get_user_encoding
26
 
 
27
26
 
28
27
IGNORE_FILENAME = ".bzrignore"
29
28
 
30
29
 
31
30
# XXX: Compatibility. This should probably be deprecated
32
 
user_encoding = get_user_encoding()
 
31
#user_encoding = get_user_encoding()
33
32
 
34
33
 
35
34
__copyright__ = "Copyright 2005, 2006, 2007, 2008 Canonical Ltd."