If people want the monster validator, they can write their own email address validator.



On 6/21/06, Igor Vaynberg < [EMAIL PROTECTED]> wrote:
heh, my vote is for michael's :) i merged it into 1.2 and 2.0 branches.

what do you guys think? the big pattern is quiete a bit bigger and the way it works right now is every instance of email addr validator will create its own copy - maybe if we refactor that to keep the pattern as a singleton it wouldnt be too bad. but as it is right now that is 1K extra session space per validator isntance which is pretty creepy

-Igor


On 6/20/06, Frank Bille Jensen < [EMAIL PROTECTED]> wrote:
On Tue, 2006-06-20 at 08:42 -0700, Igor Vaynberg wrote:
> i wonder how big the created state machine is for this beast :)


It's quite big. I just tried to profile it and compare it to the regex,
which Michael Korthuis provided. If I can calculate correctly it is over
100 times larger than Michaels regex.

Attached is the memory tables for the Pattern object in the to different
tests.


Regards
Frank Bille
Avaleo




_______________________________________________




_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user



_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to