Hello everybody, On Sat, Feb 18, 2012 at 8:35 PM, [email protected] <[email protected]> wrote: > On Sat, Feb 18, 2012 at 8:03 PM, venom00 <[email protected]> wrote: >[...] >> Beware because if you use typed arrays wrapped in another object and >> access through an accessor (.byteAtIndex(...)) you could lose the >> advantages. I'm not completely sure, but if you don't see a performance >> gain this could be the reason. > > I will try to write the code and then we may be able to make some measure.
I managed to adapt Clipperz's library to use ArrayBuffer and Uint8Array classes: - https://github.com/gcsolaroli/javascript-crypto-library/tree/typed-array It is just a simple adaptation of the old code to the new data structures; there is no automatic fallback for browsers without the new structures, and I haven't put any effort into profiling/optimizing the current code yet. I have wrongly pushed these changes also on the master branch of my repository, but they do belong to the 'typed-array' branch. [...] Cheers, Giulio Cesare _______________________________________________ http://openpgpjs.org

