why the loading of files is so slow? #1544
-
Hi,
|
Beta Was this translation helpful? Give feedback.
Replies: 3 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 . |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
Yes absolutely. Please see #1262 I have committed changed in notation3.py in my branch, I can send a pull request if you want, |
Beta Was this translation helpful? Give feedback.
@white-gecko
Yes absolutely. Please see #1262
I have committed changed in notation3.py in my branch, I can send a pull request if you want,
To https://github.com/rchateauneu/rdflib.git
4289f0e..860f985 master -> master