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).
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).