New issue 23 by cedric.c...@gmail.com: Performance issue : toLowerCase on
parseURIScheme
http://code.google.com/p/gwtwiki/issues/detail?id=23
What steps will reproduce the problem?
Using the WikiXMLParser class.
What is the expected output? What do you see instead?
Performance could be improved without calling toLowerCase.
What version of the product are you using? On what operating system?
3.0.13
Please provide any additional information below.
I found that parsing was really slow, so I launched Yourkit profiler on my
program and discovered that almost 70% of time spent is spent in the
toLowerCase() method in WikipediaParser#parseURIScheme() method.
I guess this could be improved by adding both lowercase and uppercase
versions of URI schemes in the configuration instead of using toLowerCase.
Attached file is an export of the profiling session in HTML.
Attachments:
bliki.zip 6.0 KB
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
Comment #1 on issue 23 by axelclk: Performance issue : toLowerCase on
parseURIScheme
http://code.google.com/p/gwtwiki/issues/detail?id=23
(No comment was entered for this change.)
Ok, I changed the coding to avoid the toLowerCase() call.
But I think it will probably perform only slightly better.
http://code.google.com/p/gwtwiki/source/detail?r=518