mercurial/dirstatemap.py
changeset 50928 d718eddf01d9
parent 50723 bfbd84c57bda
equal deleted inserted replaced
50927:7a8ea1397816 50928:d718eddf01d9
   375 
   375 
   376         if not st:
   376         if not st:
   377             return
   377             return
   378 
   378 
   379         # TODO: adjust this estimate for dirstate-v2
   379         # TODO: adjust this estimate for dirstate-v2
   380         if util.safehasattr(parsers, 'dict_new_presized'):
   380         if hasattr(parsers, 'dict_new_presized'):
   381             # Make an estimate of the number of files in the dirstate based on
   381             # Make an estimate of the number of files in the dirstate based on
   382             # its size. This trades wasting some memory for avoiding costly
   382             # its size. This trades wasting some memory for avoiding costly
   383             # resizes. Each entry have a prefix of 17 bytes followed by one or
   383             # resizes. Each entry have a prefix of 17 bytes followed by one or
   384             # two path names. Studies on various large-scale real-world repositories
   384             # two path names. Studies on various large-scale real-world repositories
   385             # found 54 bytes a reasonable upper limit for the average path names.
   385             # found 54 bytes a reasonable upper limit for the average path names.