here we go :) https://github.com/evilaliv3/openpgpjs/commit/e9616ff0c930b53b046008d3859ad0d46beebbb6
for who want's to try it here is the streaming capability (currently implemented only for encryption) that would enable uploading files while encrypting them. given the optimized code and the re-usage of pre allocated buffers this implementation will require only ~42mb RAM for encrypting a file of 42mb instead of ~1500mb. this 1500mb requirement infact seems to be related to the unneded allocations/deallocations of blocks while simply two blocks can be allocated and reused. next steps i will follow are: 1) implement decryption in streaming 2) try to apply the same optimization with reused buffers also for the non-streamed implementation of encrypt/decrypt. _______________________________________________ http://openpgpjs.org Subscribe/unsubscribe: http://list.openpgpjs.org

