ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Réf. : Re: Réf. : RE: Réf. : Re: Commons Validator
Date Thu, 07 Nov 2002 16:29:47 GMT

just for the ps, JOE intends to work where developers don't have the time
nor the experience (i'm working on the second project to optimize and
me their is work to do here). Moreover, JOE is very young (less than one
so wait and see ;-)

Loïc (gone to its home)

Extranet - 07/11/2002 17:19

Veuillez répondre à
Pour : ant-dev

cc :

Objet :     Re: Réf. : RE: Réf. : Re: Commons Validator

----- Original Message -----
From: <>

>Well it's just about 8% faster:


Byte.parseByte(String) is faster, you avoid an allocation.
Byte.parseByte(String, 10) is even faster you avoid a method call

 int i = Integer.parseInt(s, radix);
 return  !(i < Byte.MIN_VALUE || i > MAX_VALUE)
is even more faster. you avoid a method call and and an exception

and yet I suggest to copy/paste the Integer.parseInt method and use your
by remove the exceptions to make it even more faster by removing yet
method call and exception.

>ps: don't have the time to make a patch (sorry)

I see. Time problem.

ps: If you should read something about Knuth, read only his most famous
quote. really.
With Joe, you're taking the optimization step by the wrong end IMHO

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

This message and any attachments (the "message") is
intended solely for the addressees and is confidential. 
If you receive this message in error, please delete it and 
immediately notify the sender. Any use not in accord with 
its purpose, any dissemination or disclosure, either whole 
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message. 
BNP PARIBAS (and its subsidiaries) shall (will) not 
therefore be liable for the message if modified. 


Ce message et toutes les pieces jointes (ci-apres le 
"message") sont etablis a l'intention exclusive de ses 
destinataires et sont confidentiels. Si vous recevez ce 
message par erreur, merci de le detruire et d'en avertir 
immediatement l'expediteur. Toute utilisation de ce 
message non conforme a sa destination, toute diffusion 
ou toute publication, totale ou partielle, est interdite, sauf 
autorisation expresse. L'internet ne permettant pas 
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce 
message, dans l'hypothese ou il aurait ete modifie.

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message