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
Currently file are exchanged as base64 strings in a payload run by CefFrame::executeJavaScript, this is not optimal for several reasons :
Base 64 encoding increase the size by ~33 % (not even accounting the line breaks)
Given excalidraw can embed pictures, the payload can be even bigger.
Big strings (backed by an array) will cause on G1GC (the default on IJ at this time) to create humongous region if the string is bigger than half the region size (which by default depends on the total Java heap).
Java heap of 4 GiB usually have 2 MiB regions, so HO are created when content is over 1 MiB,
Java heap of 2 GiB usually have 1 Mib regions, so HO are created when content is over 512 KiB.
In order to improve that aspects there are multiple options
Use "the server" that would be able to server and receive files
Currently file are exchanged as base64 strings in a payload run by
CefFrame::executeJavaScript
, this is not optimal for several reasons :4 GiB
usually have2 MiB
regions, so HO are created when content is over1 MiB
,512 KiB
.In order to improve that aspects there are multiple options
The text was updated successfully, but these errors were encountered: