Add cache to speedup searching process #1

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

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 Label
No Milestone
No project
No Assignees
1 Participants
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.