From: Václav Slavík Date: Mon, 7 May 2012 11:15:31 +0000 (+0000) Subject: Fix performance of wxHtmlParser::SkipCommentTag() in UTF-8 build. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e4f762f41612d1bfddcb960c0d9aecdbda03964b?ds=sidebyside Fix performance of wxHtmlParser::SkipCommentTag() in UTF-8 build. Avoid computing the difference between two potentially distant iterators, which is O(1) in wchar_t build, but O(n) in UTF-8 one. See #13445. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71370 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/html/htmlpars.cpp b/src/html/htmlpars.cpp index ed99a443b6..dad3f09a42 100644 --- a/src/html/htmlpars.cpp +++ b/src/html/htmlpars.cpp @@ -957,12 +957,14 @@ wxHtmlParser::SkipCommentTag(wxString::const_iterator& start, wxString::const_iterator p = start; - // comments begin with "