Good catch. Yup, that's a natural Inline Method refactoring. I'll do
that before I check in.
- A
On Thu, May 29, 2003 at 04:38:20PM -0400, Gary Gregory wrote:
> A,
>
> I think we can now get rid of the StringEscapeUtils methods:
>
> private static String escapeEntities(String str, Entities entities) {
> return entities.escape(str);
> }
>
> private static String unescapeEntities(String str, Entities entities) {
> return entities.unescape(str);
> }
>
> Gary
>
> -----Original Message-----
> From: Alex Chaffee / Purple Technology [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, May 28, 2003 14:29
> To: Jakarta Commons Developers List
> Subject: Re: [lang] Optimizing Entities
>
> Another stab, this time using a lookup table for char values <256.
> Another 25-50% speedup if I'm not mistaken. This is fun!
>
> (I haven't checked in the latest changes yet, due to pending license
> issues, but if a release is near, let me know I'll check in a
> releasable version.)
>
> - A
>
> --
> Alex Chaffee mailto:[EMAIL PROTECTED]
> Purple Technology - Code and Consulting http://www.purpletech.com/
> jGuru - Java News and FAQs http://www.jguru.com/alex/
> Gamelan - the Original Java site http://www.gamelan.com/
> Stinky - Art and Angst http://www.stinky.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
--
Alex Chaffee mailto:[EMAIL PROTECTED]
Purple Technology - Code and Consulting http://www.purpletech.com/
jGuru - Java News and FAQs http://www.jguru.com/alex/
Gamelan - the Original Java site http://www.gamelan.com/
Stinky - Art and Angst http://www.stinky.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]