pchampin / sophia_rs

Sophia: a Rust toolkit for RDF and Linked Data
Other
228 stars 24 forks source link

Efficient way to get size of a graph? #114

Closed KonradHoeffner closed 2 years ago

KonradHoeffner commented 2 years ago

Is counting the iterator graph.triples().count() the correct way to get the size of a graph or is there another way? Right now I only load very small turtle files but I'm worried that when users of my application load let's say a 500 MB Turtle file, that Rust manually going through each item in the iterator may cause a delay, or is that not an issue?