[tracker/rss-enclosures] libtracker-data: Small performance improvement in the SPARQL scanner



commit ae8148a4453e2e1b12211a919c00c7baf735313d
Author: Philip Van Hoof <philip codeminded be>
Date:   Wed Apr 14 16:57:50 2010 +0200

    libtracker-data: Small performance improvement in the SPARQL scanner

 src/libtracker-data/tracker-sparql-scanner.vala |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/libtracker-data/tracker-sparql-scanner.vala b/src/libtracker-data/tracker-sparql-scanner.vala
index 6d858fd..9956660 100644
--- a/src/libtracker-data/tracker-sparql-scanner.vala
+++ b/src/libtracker-data/tracker-sparql-scanner.vala
@@ -493,12 +493,12 @@ public class Tracker.SparqlScanner : Object {
 			case '@':
 				type = SparqlTokenType.NONE;
 				current++;
-				if (current < end - "prefix".len () && matches (current, "PREFIX")) {
+				if (current < end - "prefix".size () && matches (current, "PREFIX")) {
 					type = SparqlTokenType.ATPREFIX;
-					current += "prefix".len ();
-				} else if (current < end - "base".len () && matches (current, "BASE")) {
+					current += "prefix".size ();
+				} else if (current < end - "base".size () && matches (current, "BASE")) {
 					type = SparqlTokenType.ATBASE;
-					current += "base".len ();
+					current += "base".size ();
 				}
 				break;
 			case '|':



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]