lstat()
dominates in the case of small coverage samples
#625
Labels
enhancement
New feature or request
lstat()
dominates in the case of small coverage samples
#625
Originally reported by Buck Evan (Bitbucket: bukzor, GitHub: bukzor)
The hypothesis library recently added coverage-led fuzzing, in which it needs to run a very short test many times, while examining the coverage between each trial. This (currently) involves many calls to
coverage.Collector.save_data
, which in turn causes many calls torealpath
(and thuslstat
). In the extreme case,lstat()
ends up taking about 40% of the run time.Can you please help me design a remedy? Some alternatives that I can think of:
files.abs_file
abs_file
with a call tofiles.canonical_path
, sincecanonical_path
already has a cacheThe text was updated successfully, but these errors were encountered: