Revision 41f9e1c...
Go back to digest for 7th October 2012Optimization in KDE Base
Vishesh Handa committed changes in [nepomuk-core/KDE/4.9] services/storage/resourcemerger.cpp:
ResourceMerger: Literal range check optimization
When checking the literal range, we have a special case for xsd:duration
since Soprano does not support it. During that check we compare both
the Soprano::LiteralTerm's data type (should be ungsigned int) and we
compare the range to the duration xml schema uri.
Comparing the data type is a LOT faster, so we should do that first.
That way we can occasionally save the expensive url comparsion check.
Micro Optimization++
File Changes
Modified 1 files
- services/storage/resourcemerger.cpp
1 files changed in total