Commit 5bdda32
perf(macOS): avoid copying large protocol bodies (#1719)
* perf(macOS): avoid copying large protocol bodies
* refatcor: mirage `NSData::initWithBytes_length` to `NSData::with_bytes`
* Refine WKURLSchemeTask body handling
* chore: comment on optimize buffer handling in start_task to reduce copying for larger responses
* perf: reduce NO_COPY_DATA_THRESHOLD to 64 KB for improved buffer handling
* perf: increase NO_COPY_DATA_THRESHOLD to 128 KB for improved buffer handling
* update url_scheme_handler.rs
Co-authored-by: Tony <[email protected]>
* update macos-protocol-body-nocopy.md
* cargo fmt
* Remove unused `NO_COPY_DATA_THRESHOLD`
---------
Co-authored-by: Tony <[email protected]>
Co-authored-by: Tony <[email protected]>1 parent 101d7ac commit 5bdda32
4 files changed
Lines changed: 14 additions & 12 deletions
File tree
- .changes
- src/wkwebview/class
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| 141 | + | |
141 | 142 | | |
142 | 143 | | |
143 | 144 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
217 | | - | |
| 217 | + | |
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
234 | | - | |
| 234 | + | |
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
| |||
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
276 | 271 | | |
277 | 272 | | |
278 | 273 | | |
| |||
0 commit comments