From 87d0499fc8329805a3b28367a073e573e195b075 Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Sat, 24 Apr 2021 09:30:08 -0400 Subject: [PATCH] performance: Use ascii-only version of getUnitl for parsing attribute names Not having to consider utf-8 characters has performance benefits. --- src/Task.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Task.cpp b/src/Task.cpp index aa837b587..050fce492 100644 --- a/src/Task.cpp +++ b/src/Task.cpp @@ -596,8 +596,8 @@ void Task::parse (const std::string& input) std::string value; while (!attLine.eos ()) { - if (attLine.getUntil (':', name) && - attLine.skip (':') && + if (attLine.getUntilAscii (':', name) && + attLine.skip (':') && attLine.getQuoted ('"', value)) { #ifdef PRODUCT_TASKWARRIOR