pchampin / sophia_rs

Sophia: a Rust toolkit for RDF and Linked Data
Other
210 stars 23 forks source link

Validating split IRI without allocating a new String #74

Closed pchampin closed 7 months ago

pchampin commented 4 years ago

Currently, validating a split IRI (i.e. represented as a pair namespace + suffix) allocates a new string, concatenates both parts, and validates it agains a regexp.

It should be possible to validate this pair without the extra allocation, and this might be faster (although this would need to be measured).

pchampin commented 7 months ago

moot now that (almost) all IRIs are stored as one string.