Usage Docs
dwhitney opened this issue · 1 comments
dwhitney commented
Hi, I'd like to use the library, but the code in the README is quite slow. However when I go to shacl-playground and cut/paste the same shapes and data, I see that it's actually pretty performant. How do I get the kind performance I see on the playground?
Thanks!
HolgerKnublauch commented
I can only speculate. Did you have a chance to compare your source code with what the playground does? Maybe it is the fact that the playground separates the computation of the shapesGraph from the actual validation? There is a bit of overhead in parsing the shapes themselves, connecting the validators etc. Have you tried pre-building a the shapesGraph and then just measuring the validation?