dsh-unlag 1.9.115 → 1.9.116

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +10 -6
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -100,15 +100,19 @@ const MAX_STARTUP_ROW_CHARS = 8192
100
100
  * The largest one startup script may be before a check refuses it. The app serves a whole profile as
101
101
  * a few bundles, and those grow with every installed plugin: one profile's largest bundle measured
102
102
  * 8.7 MB, which a smaller bound refused as if it were an attack and left the page unrebuildable.
103
- * A body past this bound is a mistake or an attempt to make a check read (and compile) an unbounded
104
- * amount of text inside the process that owns every running turn.
103
+ * Compiling a body costs several times its size in memory before it is thrown away, and up to three
104
+ * checks may run at once, so the bound is set close to what a profile actually serves: this one
105
+ * measured 15.7 MB across three bundles, its largest 9.2 MB. A body past 24 MB is not a profile
106
+ * this app ships with, and reading one would let a request make the process that owns every running
107
+ * turn hold text no page boots from.
105
108
  */
106
- const MAX_SCRIPT_BYTES = 64 * 1024 * 1024
109
+ const MAX_SCRIPT_BYTES = 24 * 1024 * 1024
107
110
  /**
108
- * The same bound for one whole startup list, so a list of large bodies cannot add up either. Only
109
- * the compile happens under it: what a check keeps per body is the ids it names, never its text.
111
+ * The same bound for one whole startup list, so a list of large bodies cannot add up either. Two
112
+ * measured profiles' worth: what a check keeps per body is the ids it names, never its text, so
113
+ * the whole list's transient text is what this bounds.
110
114
  */
111
- const MAX_TOTAL_SCRIPT_BYTES = 128 * 1024 * 1024
115
+ const MAX_TOTAL_SCRIPT_BYTES = 48 * 1024 * 1024
112
116
  /**
113
117
  * How large the request that carries the list may be. The list itself is bounded (64 addresses of at
114
118
  * most 8 KB, plus JSON escaping), so a bound below that would refuse a sound startup list from a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-unlag",
3
- "version": "1.9.115",
3
+ "version": "1.9.116",
4
4
  "type": "module",
5
5
  "description": "A press applies plugin edits right away and brings a laggy interface back; automatic reloading stays off unless you turn it on, so the press is the only trigger, and nothing restarts.",
6
6
  "license": "MIT",