question-mark
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

I am not certain of this, but I suspect there might be room for performance improvement by using re.compile to precompile all of the needed regexs. Otherwise they will have to be compiled regularly (once the re cache of 100 has been exceeded)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
dakingggcommented, Oct 25, 2019

I think that if there are more than 100 regexs (including any that are in loops like here: https://github.com/nipunsadvilkar/pySBD/blob/a2bb4510e65b1fd6c37e2162005076db0e984fb0/pysbd/abbreviation_replacer.py#L62) the cache will cycle, and regexs will have to be recompiled. Given that the number of ABBREVIATIONS alone is 188, I suspect that the cache is cycling.

0reactions
nipunsadvilkarcommented, Aug 4, 2020

Fixed #71

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is Performance Improvement?
Performance improvement is a strategy under the umbrella of performance management that helps employees achieve better performance and growth.
Read more >
Performance improvement
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
Our Performance Improvement practice equips you to grow earnings and outperform the competition.
Read more >
How to Establish a Performance Improvement Plan
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found