| Issue 3: | OsgiVersionConverter could be faster without many regular expressions | |
| 1 person starred this issue and may be notified of changes. | Back to list |
Profiling of Confluence start-up showed that the DefaultOsgiVersionConverter was spending a lot of time converting version numbers into OSGi format. What steps will reproduce the problem? 1. Run a lot of conversions through DefaultOsgiVersionConverter (like say 10000) 2. It takes a long time. I think it's possible to rewrite this class to use iterative methods of String splitting and concatenation rather than regular expressions. Regexes can take polynomial time. See also: issue 2 . |
Labels: Performance