noledgebin / frontend

NoledgeBin is a zero-knowledge pastebin
https://andinus.unfla.me/noledgebin/
GNU Affero General Public License v3.0
1 stars 1 forks source link

Improve compression by converting the u8array to base64 #17

Closed andinus closed 2 years ago

andinus commented 2 years ago

Earlier we were converting it to string with .toString() but that would add ',' after each element and that was starting to add up.

According to my tests on 100 paragraphs of lorem ipsum, containing 20559 characters.

In this case, compression was not helping us.

That's more than 3x improvement.

andinus commented 2 years ago

This change will break previously generated URLs.