You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Well, the writer did get a lot of work to be able to write out full N3 Formulae, vs. just Turtle, but most of that shouldn't have come into play. My suspicion is in this block:
Dumping this list in ntriples almost instantly finishes:
RDF::List(*(0...100)).dump(:ntriples)
.While
RDF::List(*(0...100)).dump(:n3)
is very slow.My previous PR #21 improved the performance a bit, but later commits reduced the performance again.
Running
Benchmark.measure { RDF::List(*(0...100)).dump(:n3) }.to_s
on different commits:281f707 => 0.477319 0.024164 0.501483 (0.611887)
532485c => 2.693448 0.048810 2.742258 (3.432530)
f2938bc => 5.003711 0.026643 5.030354 (6.697221)
The more items in a list, the slower the serialization.
Do you have any ideas on how to improve the performance of large lists?
The text was updated successfully, but these errors were encountered: