FYI, some rough benchmarking in Safari using the benchmarking function
of unit tests:

      benchmark(function(){
        var colors = $('blue red green violet');
      }, 10000)
      benchmark(function(){
        var colors = ['blue', 'red', 'green', 'violet'];
      }, 10000)

Info: Operation finished 10000 iterations in 4.246s
Info: Operation finished 10000 iterations in 3.179s

So that's clearly not somewhere we should sacrifice readability for
speed.

Regards,

Tobie


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype: Core" group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to