Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Performance improvement?

See original GitHub issue


We are users of pathspec in some other project. I have a performance question.

For a long list of rules (dozens) matches large amount of files (hundreds of thousands) the match_file takes a long time. Is there any method to improve its performance? For example, using a big regex instead of multiple small ones.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

karajan1001commented, Jun 16, 2020

image image image

For example, It would take 20μs for each file. And 2 seconds for 100k file. And if we use big regex and use if expression to skip the normalization in the UNIX system. It could be 100ms (maybe several hundred for Windows users). This could give great help to user experience in the interactive tools relied on path specification.

excitooncommented, Sep 2, 2022

Of course it is

On Fri, Sep 2, 2022, 7:20 PM Nicholas Bollweg @.***> wrote:

Is it worth adding an actual benchmark with e.g. pytest-benchmark or asv

— Reply to this email directly, view it on GitHub, or unsubscribe . You are receiving this because you commented.Message ID: @.***>

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is Performance Improvement? - BambooHR
Performance improvement is a strategy under the umbrella of performance management that helps employees achieve better performance and growth.
Read more >
Performance improvement - Wikipedia
Performance improvement is measuring the output of a particular business process or procedure, then modifying the process or procedure to increase the ...
Read more >
Why Performance Improvement Is Essential | ATD
Performance improvement, defined in the study as the systemic process of identifying the root causes of a performance issue in an organization ...
Read more >
Performance Improvement | Bain & Company
Our broad range of experts can help you boost the top and bottom lines by streamlining your procurement and supply chain efficiency, and...
Read more >
How to Establish a Performance Improvement Plan - SHRM
A performance improvement plan (PIP), also known as a performance action plan, is a tool to give an employee with performance deficiencies the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found