BTW I've run the fiddle on my box several times and here are the average:

idLookup took: 6ms, found:1000
dataLookup took: 8ms, found: 1000

Cheers


On Fri, Nov 9, 2012 at 6:45 PM, Howard Lewis Ship <hls...@gmail.com> wrote:

> I'm working on a revised DateField right now, and driving it towards the
> unobtrusive approach instead of the explicit approach.
>
>
> On Fri, Nov 9, 2012 at 6:42 AM, Massimo Lusetti <mluse...@gmail.com>
> wrote:
>
> > On Thu, Nov 8, 2012 at 6:32 PM, Howard Lewis Ship <hls...@gmail.com>
> > wrote:
> >
> > I modified the fiddle to loop 100 times; this will partially account for
> > > cachine, and MV optimizations.  By the last round:
> > >
> > > idLookup: 2ms
> > > dataLookup: 15ms
> > >
> > > Still, tiny amounts of time.
> > >
> >
> > I would definitely prefer the attribute driver approach even in case of a
> > need of a complete scan on each page or section.
> >
> > Said that I would ask if that time would increase with and increase in
> the
> > complexity of the page? How many "fiddle" elements (maybe compared to id
> > elements) could have a page like GMail ?
> >
> > One more think to note is: since more and more communities are going
> > towards a "data-" like approach I think that that sentiment could drive
> the
> > future developments of javascript frameworks and javascript engines.
> >
> > Cheers
> > --
> > Massimo
> >
>
>
>
> --
> Howard M. Lewis Ship
>
> Creator of Apache Tapestry
>
> The source for Tapestry training, mentoring and support. Contact me to
> learn how I can get you up and productive in Tapestry fast!
>
> (971) 678-5210
> http://howardlewisship.com
>



-- 
Massimo
http://meridio.blogspot.com

Reply via email to