thanks for the reply chris. that was just a typo with "helper1" should've
been:        for each val in vals
            if ( view.helper1(val) ) result = view.helper2(val, result);

I'll do some measurements when we get closer to production and report back
to the list.

A

On Mon, Mar 9, 2009 at 7:02 PM, Chris Anderson <[email protected]> wrote:

> On Mon, Mar 9, 2009 at 5:31 PM, Adam Wolff <[email protected]> wrote:
> > Am I the only person who's worried about this?
> >
>
> I've definitely wondered about it. I'd be curious to see some measurements.
>
> This seems like the sort of thing the JS optimizer could clean up
> really easily. So far I haven't worried to much about view function
> computation time, as it seems to be roughly matched with index
> maintenance time. That is, I've never felt that JS view function
> execution was the bottleneck.
>
> The first thing I'd optimize in your example function is all the extra
> calls to helper1() but I'm guessing it's just an example.
>
> Chris
>
> --
> Chris Anderson
> http://jchris.mfdz.com
>

Reply via email to