Add cache to speedup searching process #1

Open
opened 2023-03-08 08:43:08 +01:00 by Mindiell · 0 comments

Demande de Seluj78
Réponse de @mdk
I don't think caching is the clean way to speed up pogrep. I'd better consider enhancing polib performance: On a test run pogrep -r string it took 22s to compute, 19s in polib.py.

18s are spent in polib.py:parse, parse itself calls process (spends 8s in it) and also uses re.search (spend 3s in it).

Demande de Seluj78 Réponse de @mdk I don't think caching is the clean way to speed up pogrep. I'd better consider enhancing polib performance: On a test run pogrep -r string it took 22s to compute, 19s in polib.py. 18s are spent in polib.py:parse, parse itself calls process (spends 8s in it) and also uses re.search (spend 3s in it).
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AFPy/pogrep#1
No description provided.