John I agree, that's why I did not included the check in my two proposals.
In my opinion the compact one (#1) is good enough, the other one is just
more "paranoic" and designed for a pessimistic usage of trim ... I mean
passing empty strings should be a rare case, isn't it?

On Wed, Nov 5, 2008 at 12:13 PM, John Resig <[EMAIL PROTECTED]> wrote:

>
> > There is probably one case where it does not perform faster, length 1 or
> 0,
> > but we are talking abut 1 to 5 miliseconds in both cases, and about "0"
> with
> > new browsers possibilities.
>
> I don't think this should really be optimized - everything is going to
> be fast for incredibly small values like this.
>
> --John
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to