~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/dirstate.py

  • Committer: Aaron Bentley
  • Date: 2009-04-07 14:49:24 UTC
  • mfrom: (4265 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4266.
  • Revision ID: aaron@aaronbentley.com-20090407144924-s98zo48wnqv99pht
Merge bzr.dev into hide-reference.

Show diffs side-by-side

added added

removed removed

Lines of Context:
187
187
the file on disk, and then immediately discard, the overhead of object creation
188
188
becomes a significant cost.
189
189
 
190
 
Figures: Creating a tuple from from 3 elements was profiled at 0.0625
 
190
Figures: Creating a tuple from 3 elements was profiled at 0.0625
191
191
microseconds, whereas creating a object which is subclassed from tuple was
192
192
0.500 microseconds, and creating an object with 3 elements and slots was 3
193
193
microseconds long. 0.1 milliseconds is 100 microseconds, and ideally we'll get
2028
2028
 
2029
2029
    @staticmethod
2030
2030
    def on_file(path, sha1_provider=None):
2031
 
        """Construct a DirState on the file at path path.
 
2031
        """Construct a DirState on the file at path "path".
2032
2032
 
2033
2033
        :param path: The path at which the dirstate file on disk should live.
2034
2034
        :param sha1_provider: an object meeting the SHA1Provider interface.