Closed tmpmachine closed 11 months ago
This discrepancy is likely due to Safe Browsing checks. You could test this by turning them off or writing to a file in the OPFS (for which Safe Browsing checks are not run)
Closing this issue because this is a question about the Chromium implementation. If there's more to this, please file a Chromium bug under the Blink>Storage>FileSystem component
Saving file content with certain character sequence such as
<htmlscript>
is twice as slow than without.Test cases ;
htmlscript
: fast<htmlscript>
: slow<html Whatever Character Between script>
: slowhtml Whatever Character Between script
: fastfor example <if html script> slow>
: fastfor example if< html script> slow>
: slowfor example <if html script> slow> < html >
: slowfor example <if html script> slow> < script >
: fastfor example script> <html>
: slowfor example <html> <script
: fastfor example <html> script>
: slowTested on blank project as well as File System Access API demo : https://googlechromelabs.github.io/text-editor/.
Tested on OS :
Changing the MIME type on file picker options also has no effect on this issue :