commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell (JIRA)" <>
Subject [jira] Closed: (LANG-293) StringEscapeUtils.unescape* can be faster
Date Tue, 20 Oct 2009 04:31:59 GMT


Henri Yandell closed LANG-293.

    Resolution: Won't Fix

Apologies - but after the rewrite the patch isn't relevant anymore. I had a stab at recreating
the spirit of the patch by short circuiting early, but it didn't improve speed in my tests.
I'm sure there are speed improvements, but probably needs to take a fresh start on the code.

Again - apologies that the code was rewritten before your patch could be applied.

> StringEscapeUtils.unescape* can be faster
> -----------------------------------------
>                 Key: LANG-293
>                 URL:
>             Project: Commons Lang
>          Issue Type: Improvement
>    Affects Versions: Nightly Builds
>            Reporter: Stepan Koltsov
>             Fix For: 3.0
>         Attachments: commons-lang-unescape-performace2-stepancheg-2006-10-31.diff,
> 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
> 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.
You can reply to this email to add a comment to the issue online.

View raw message