fastest way to do very very many character substitutions
From: anon (tolchocked_at_gmail.com)
Date: 09/24/04
- Next message: Paul Lutus: "Re: fastest way to do very very many character substitutions"
- Previous message: Al Wilkerson: "Converting Time as a string to a Long"
- Next in thread: Paul Lutus: "Re: fastest way to do very very many character substitutions"
- Reply: Paul Lutus: "Re: fastest way to do very very many character substitutions"
- Reply: William Brogden: "Re: fastest way to do very very many character substitutions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 23 Sep 2004 22:07:12 -0700
hi,
I am wondering what approaches you all might suggest for the following
scenario. I'm not looking for code, but just general thoughts about
the best way to approach this problem.
I need to substitute hundreds, possibly thousands, of character
sequences (English words or phrases) in texts that are up to about
100KB or so in size, and I need to do this as fast as human possible
(well, actually, faster). Some of the substitution terms require
regular expressions, but some can be handled by a regular replace.
Any advice at all about Java resources that might be available would
be very much appreciated. I can think of a few naive ways of doing
this, but perhaps there are some lesser known classes than String and
StringBuffer that would be useful, or perhaps there is some
open-source utility class that offers a mutable character-array type
object with powerful search-and-replace/regex abilities, or maybe
something else altogether.
Thanks in advance for any pointers...
- Next message: Paul Lutus: "Re: fastest way to do very very many character substitutions"
- Previous message: Al Wilkerson: "Converting Time as a string to a Long"
- Next in thread: Paul Lutus: "Re: fastest way to do very very many character substitutions"
- Reply: Paul Lutus: "Re: fastest way to do very very many character substitutions"
- Reply: William Brogden: "Re: fastest way to do very very many character substitutions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|