]> git.saurik.com Git - wxWidgets.git/commit
Fix performance of wxHtmlParser::SkipCommentTag() in UTF-8 build.
authorVáclav Slavík <vslavik@fastmail.fm>
Mon, 7 May 2012 11:15:31 +0000 (11:15 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Mon, 7 May 2012 11:15:31 +0000 (11:15 +0000)
commite4f762f41612d1bfddcb960c0d9aecdbda03964b
tree2a370ab51272c59c4f637055275f2e0b99aaf0a4
parent2a715bcb3cde35746d698ef19cbf52405110b1d6
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
src/html/htmlpars.cpp