fix(memory): 图片字节冷读加 4 路并发闸门(v3.26.110)
Windows 实测:启动后 usedJSHeapSize 34MB → 440~557MB,而画板数据只有 0.5MB。 根因:首帧渲染时对 111 个图片引用同时发起读盘,每个 1~6MB 读成 Uint8Array 再 copy 进 Blob。 改为 getBlob 冷读 4 路并发(缓存命中不排队),堆峰值随并发走而不随画布图片数走;stats 增加读取并发观测。
This commit is contained in:
1 parent
870508a33f
commit
004227f074
6 files changed
+37
-6
No files matched your search
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "image-workbench-web",
|
||||
"private": true,
|
||||
"version": "3.26.109",
|
||||
"version": "3.26.110",
|
||||
"description": "Browser-based node canvas image workbench",
|
||||
"scripts": {
|
||||
"build": "node scripts/build.js && node scripts/copy-plugins.js",
|
||||
|
||||
Reference in new issue
Block a user