[Nepomuk] Why store file urls?

Anders Lund anders at alweb.dk
Fri Nov 23 08:55:02 UTC 2012


On Fredag den 23. november 2012 14:16:22 Vishesh Handa wrote:
> The problem with this approach is that every single url which is passed
> through Nepomuk needs to be checked for the "filex" scheme and then
> translated. Since we do not have a sparql parser this is done by employing
> regular expressions to check for patterns with file:/mount/point and filex.
> 
> Valgrind logs show that for small queries a sizable amount (upto 40%) of
> time is spent in just this regular expression based parsing. Additionally
> since queries can return any kind of data, all of the data passed from
> virtuoso to Nepomuk has go through these checks.

Why use regular expressions to search for a fixed string? Simple string 
comparison would be much more efficient for that!


-- 
Anders


More information about the Nepomuk mailing list