You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you create an E2E room in a big account with a few large (~3-4MB) images in it and start navigating back and forth, Firefox particularly grinds to a spectacular halt with ~20s garbage collections (on my top-end MBP).
It feels like we might be going and undecrypting the original file (even if we don't view it) rather than just the smaller thumbnails?
The text was updated successfully, but these errors were encountered:
ara4n
changed the title
Navigating between E2EE images breaks Firefox spectacularly
Navigating between rooms containing E2EE images breaks Firefox spectacularly
Oct 30, 2019
given that clicking on a thumbnail instantly displays the fullres image without downloading anything, it definitely feels like we are incorrectly loading the fullres encrypted images somewhere rather thabn just the thumbnails.
This is currently making my riot/web literally unusable due to the 20s GCs on firefox (after I stupidly sent a 11MB encrypted image into a room).
The problem is that MImageBody decrypts both the thumbnail and the actual target on mount, and apparently always has done. Instead, need to delegate decrypting the target until something actually tries to get at the content URL.
...which is relatively tricky, as we currently need the content URL to render the download link of the image, unless we lazyload that in, which would feel quite flakey. probably better to avoid providing a download link from the thumbnail entirely, and instead only from the lightbox.
If you create an E2E room in a big account with a few large (~3-4MB) images in it and start navigating back and forth, Firefox particularly grinds to a spectacular halt with ~20s garbage collections (on my top-end MBP).
It feels like we might be going and undecrypting the original file (even if we don't view it) rather than just the smaller thumbnails?
The text was updated successfully, but these errors were encountered: