Commit 72a9b8d
Drop redundant buffer copies and a dead hook export
The verified-preview path copied every downloaded byte twice for no
gain: fetchBuffer re-allocated each response chunk element-by-element
via Uint8Array.from before collecting it (Electron's net module
delivers fresh Buffers, so retaining them is safe and Buffer.concat
already performs the single final copy), and the metadata checksum
round-tripped the whole buffer through a latin1 string before hashing,
which allocates an up-to-10MB string to produce the digest hashing the
Buffer directly yields.
Also removes the unused useNFTVideoLoop default export: both consumers
import the named hooks and derive the effective global-or-per-video
state themselves, so the wrapper only added surface that could drift
from the real logic.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FUAhsJYiWuD36Hq4h49gLg1 parent f68778e commit 72a9b8d
3 files changed
Lines changed: 7 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
114 | | - | |
| 113 | + | |
115 | 114 | | |
116 | 115 | | |
117 | 116 | | |
118 | 117 | | |
119 | 118 | | |
120 | | - | |
| 119 | + | |
121 | 120 | | |
122 | 121 | | |
123 | 122 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
0 commit comments