-
Notifications
You must be signed in to change notification settings - Fork 555
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
why the loading of files is so slow? #1261
Comments
The file is from: https://en-word.net/static/english-wordnet-2020.ttl.gz In my setup it took 4 minutes
I think our turtle parser is not very good. To make some testing easier I've changed the code to:
Also I converted the file with rapper (raptor2-utils) to n-triples
(The last conversion is just from turtle to turtle, to see if there is any difference between the original serialization and the rapper serialization) And compared parsing if the n-triples file with the turlte parser as well as with the n-triples parser
So we can see a lot of variation between the user and system times Maybe somebody wants to do this comparison with Cython #1250 . |
After doing some profiling, I suspect the rdflib/rdflib/plugins/parsers/notation3.py Line 1155 in 9f0f296
rdflib/rdflib/plugins/parsers/notation3.py Line 1239 in 9f0f296
|
Yes absolutely. Please see #1262 I have committed changed in notation3.py in my branch, I can send a pull request if you want, |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Hi,
I am loading a 165 MB file and the loading process takes ages. I would expect to be loaded in a matter of seconds.
Am I doing smth wrong or this is a normal?
Here is my code which is very simple:
The text was updated successfully, but these errors were encountered: