Closed WebReflection closed 1 year ago
OK, it looks like in Chromium they are using btoa(fromCharCode(new UInt8Array(pngBuffer)))
and in WebKit the arg size is an int32 which is plenty of chars ... I believe these days it's safe to just expect variable arity to deal with huge amount of arguments so that hacks like these needed in 2011 are not relevant anymore http://webreflection.blogspot.com/2011/07/about-javascript-apply-arguments-limit.html
This MR would like to slightly improve performance by parsing the whole buffer in one go as unique
fromCharCode
String operation.