[prev in list] [next in list] [prev in thread] [next in thread]
List: nepomuk
Subject: Re: [Nepomuk] Why store file urls?
From: Anders Lund <anders () alweb ! dk>
Date: 2012-11-23 8:55:02
Message-ID: 1410684.OJqgiOBEv4 () katja
[Download RAW message or body]
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
_______________________________________________
Nepomuk mailing list
Nepomuk@kde.org
https://mail.kde.org/mailman/listinfo/nepomuk
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic