Re: Is this efficient way to validate phrase against collection of regular expressions
From: Eric Bodden (newsserver_mails_at_bodden.de)
Date: 02/14/04
- Next message: Piet den Dulk: "Re: Thread.sleep?"
- Previous message: Juha Laiho: "Re: J2EE or Tomcat"
- In reply to: Ossie: "Is this efficient way to validate phrase against collection of regular expressions"
- Next in thread: Chris Uppal: "Re: Is this efficient way to validate phrase against collection of regular expressions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 14 Feb 2004 14:02:47 +0100
Once upon a time <e32f82b0.0402140124.59a34140@posting.google.com>,
Ossie <google@okmoore.com> enriched the world with the following:
> Is there a better way to manage the
> validation of the phrase against a collection of patterns? My fear is
> this is pretty intense way of validating the pattern of the phrase.
No, I think that's pretty much optimal. You could use an arraylist instead
of a vector though. Vector is pretty slow. The matching itself however is
the most expensive part and that overhead cannot be overcome anyway.
Eric
-- ----------------------------------------------------------------- Eric Bodden ICQ UIN: 12656220 Website: http://www.bodden.de PGP key available
- Next message: Piet den Dulk: "Re: Thread.sleep?"
- Previous message: Juha Laiho: "Re: J2EE or Tomcat"
- In reply to: Ossie: "Is this efficient way to validate phrase against collection of regular expressions"
- Next in thread: Chris Uppal: "Re: Is this efficient way to validate phrase against collection of regular expressions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|