performance: Use ascii-only version of getUnitl for parsing attribute names
Not having to consider utf-8 characters has performance benefits.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user