From: robertlipe Date: Wed, 10 Jul 2013 04:47:02 +0000 (+0000) Subject: Shave another 17% of read performance out on GPX read by eliminating a X-Git-Tag: archive/raspbian/1.10.0+ds-2+rpi1~1^2~12^2~11^2~540 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=9c409197d06e2169b3614ad2649fc37cc0f10b18;p=gpsbabel.git Shave another 17% of read performance out on GPX read by eliminating a copy/converstion on each incoming tag. --- diff --git a/gpsbabel/gpx.cc b/gpsbabel/gpx.cc index 0c7eb5c10..245839b4b 100644 --- a/gpsbabel/gpx.cc +++ b/gpsbabel/gpx.cc @@ -681,7 +681,7 @@ gpx_start(void* data, const XML_Char* xml_el, const XML_Char** xml_attr) */ *(char*) cdatastr.mem = 0; - tag = get_tag(qPrintable(current_tag), &passthrough); + tag = get_tag(current_tag, &passthrough); switch (tag) { case tt_gpx: tag_gpx(attr); @@ -932,7 +932,7 @@ gpx_end(void* data, const XML_Char* xml_el) fprintf(stderr, "Mismatched tag %s. Expected %s\n", el, qPrintable(s)); } - tag = get_tag(qPrintable(current_tag), &passthrough); + tag = get_tag(current_tag, &passthrough); switch (tag) { /* * First, the tags that are file-global.