An Introduction to JS-Ctypes

Andrea Giammarchi andrea.giammarchi at
Sat Sep 17 21:09:13 PDT 2011

at least now we agree object literals *add* overhead and with current typed structs/arrays proposal you can bet developers will do those
kind of non-sense things ;-)

I have updated the test case using a second Int32Array loop simply to access
the index

On Sun, Sep 18, 2011 at 6:03 AM, Brendan Eich <brendan at> wrote:

> On Sep 17, 2011, at 10:34 PM, Andrea Giammarchi wrote:
> > Brendan I wrote I did it on purpose trying to predict what JS devs will
> do once will bring ctypes like syntax.
> My objection is that you're confounding test2 by adding object literal
> overhead to each loop iteration, in addition to typed array accesses. You
> want to focus on just the typed array accesses, from what I can tell of your
> benchmark.
> /be
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list