• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Most efficient character parsing.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Most efficient character parsing.


  • Subject: Most efficient character parsing.
  • From: Eric Stewart <email@hidden>
  • Date: Wed, 15 Feb 2006 16:43:20 -0500

I've got a WOApp that needs to deal with 200 strings of approximately
250-500 characters per string.

I need to strip out all characters that are not ISO-8859-1 legal
characters. So basically any character that is not decimal ascii
character 9, 10, 13, 32-126, 160-255 need to be removed from the
string. This process is happening roughly 2.5 million times a day and
I'm trying to figure out what is the most efficient way to do it.

Right now I'm tearing the strings apart character-by-character and
checking it's ascii decimal value against the values I know are good.
Is there a more efficient way to do it?

Thanks everyone,

- Eric
email@hidden
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Most efficient character parsing.
      • From: Wolfram Stebel <email@hidden>
    • Re: Most efficient character parsing.
      • From: Arturo PĂ©rez <email@hidden>
  • Prev by Date: Re: Listen Queue Size Setting & Concurrent Request Handling
  • Next by Date: Re: Listen Queue Size Setting & Concurrent Request Handling
  • Previous by thread: Re: Listen Queue Size Setting & Concurrent Request Handling
  • Next by thread: Re: Most efficient character parsing.
  • Index(es):
    • Date
    • Thread