StringEscapeUtils.unescape* can be faster -----------------------------------------
Key: LANG-293 URL: http://issues.apache.org/jira/browse/LANG-293 Project: Commons Lang Issue Type: Improvement Affects Versions: Nightly Builds Reporter: Stepan Koltsov Typical string that need to be unescaped contains almost no XML entities, so copying input string to output buffer char by char is slow. I've refactored Entities.unescape() so it works faster. Going to submitting patch and tests. Patch contains both hacked and original versions of unescape, to run tests. Test shows that performance remains same on short strings, and much better or large strings with rare entities. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]