You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by lo...@bnpparibas.com on 2002/11/07 17:29:47 UTC

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

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
believe
me their is work to do here). Moreover, JOE is very young (less than one
month),
so wait and see ;-)

Loïc (gone to its home)



Extranet
sbailliez@apache.org - 07/11/2002 17:19


Veuillez répondre à ant-dev@jakarta.apache.org
Pour : ant-dev

cc :


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


----- Original Message -----
From: <lo...@bnpparibas.com>

>Well it's just about 8% faster:
[...]

ah.

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
own
by remove the exceptions to make it even more faster by removing yet
another
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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>










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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>