Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speed up rdf sink (and more?) with lru_cache on text utils #447

Merged
merged 1 commit into from
Apr 20, 2023

Conversation

kevinschaper
Copy link
Collaborator

@kevinschaper kevinschaper commented Apr 20, 2023

I noticed that kgx tsv to rdf conversions were surprisingly slow and ran it through a profiler, it turned out to be just the simple text conversion operations between different casing that were causing the slowdown. I added @lru_cache to the particular method that I was hitting, but then also the reverse function of it and a couple nearby that looked like they would benefit

@sierra-moxon sierra-moxon merged commit a45a76a into master Apr 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants