Commit 8ff0e82
feat: apply HDIFF13 stream-format bundle patches
hpatch_by_file now sniffs the patch header and dispatches: single format
(HDIFFSF20) keeps the existing path byte-for-byte; HDIFF13 (diffStream
output, served only on the capability-gated v2 track for large bundles)
applies via patch_decompress_with_cache with the same streaming memory
profile (decompress cache + IO buffers, old loaded to memory only when
<= 8MB). Works transparently under the HBC transform flow since that
path also funnels through hpatch_by_file.
Tests: stream-format apply and transform+stream e2e added to
patch_core_test (fixtures generated by node-hdiffpatch and round-trip
verified in JS first). Android prebuilt .so rebuilt for all ABIs.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 72a836d commit 8ff0e82
8 files changed
Lines changed: 99 additions & 1 deletion
File tree
- android
- jni
- lib
- arm64-v8a
- armeabi-v7a
- x86_64
- x86
- cpp/patch_core/tests
- fixtures
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
108 | 154 | | |
109 | 155 | | |
110 | 156 | | |
111 | 157 | | |
| 158 | + | |
112 | 159 | | |
113 | 160 | | |
114 | 161 | | |
| |||
120 | 167 | | |
121 | 168 | | |
122 | 169 | | |
123 | | - | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
124 | 177 | | |
125 | 178 | | |
126 | 179 | | |
| |||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
213 | 256 | | |
214 | 257 | | |
215 | 258 | | |
| |||
687 | 730 | | |
688 | 731 | | |
689 | 732 | | |
| 733 | + | |
| 734 | + | |
690 | 735 | | |
691 | 736 | | |
692 | 737 | | |
| |||
0 commit comments