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

Improve compactIri performance #460

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

Janpot
Copy link

@Janpot Janpot commented Aug 13, 2021

Having some performance problems on some particularly large input. I noticed this quite costly loop that could be replaced with a Map lookup. Seems to reduce the overall runtime of .compact by about 50%.

for reference, the offending data: https://gist.githubusercontent.com/Janpot/792ae65f50d53a2903ffd87d29bec782/raw/51199036e09c9567ebfa4b04d03f5e207a39cdae/large-jsonld.json
encountered on this website: https://www.stanglwirt.com

Copy link
Member

@dlongley dlongley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@davidlehn, this seems sensible to me -- can we get it merged and closed?

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.

None yet

2 participants