mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2025-06-24 07:02:30 +00:00

- In anticipation of streaming decryption - Firefox 34 does not support chunk_size_byte > 24 256KiB is almost as fast as no chunks (although both of those can be up to ~1.5x slower than optimally using threads for very large message sizes). The optimal chunk size would be something like: max(data.length / navigator.hardwareConcurrency, 128KiB) But we don't do so currently because - We don't know the hardwareConcurrency of the decrypting machine - Smaller chunk sizes are better for streaming decryption