Commit 174f8c8
src: avoid heap allocation in sign.final()
Put the 8 kB initial buffer on the stack first and don't copy it to the
heap until its exact size is known (which is normally much smaller.)
PR-URL: #14122
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent efb7aef commit 174f8c8
2 files changed
+10
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4147 | 4147 | | |
4148 | 4148 | | |
4149 | 4149 | | |
4150 | | - | |
| 4150 | + | |
4151 | 4151 | | |
4152 | 4152 | | |
4153 | 4153 | | |
| |||
4196 | 4196 | | |
4197 | 4197 | | |
4198 | 4198 | | |
4199 | | - | |
| 4199 | + | |
4200 | 4200 | | |
4201 | 4201 | | |
4202 | 4202 | | |
| |||
4222 | 4222 | | |
4223 | 4223 | | |
4224 | 4224 | | |
4225 | | - | |
4226 | | - | |
4227 | | - | |
4228 | 4225 | | |
4229 | 4226 | | |
4230 | 4227 | | |
| |||
4243 | 4240 | | |
4244 | 4241 | | |
4245 | 4242 | | |
4246 | | - | |
4247 | | - | |
4248 | | - | |
4249 | 4243 | | |
| 4244 | + | |
| 4245 | + | |
4250 | 4246 | | |
4251 | 4247 | | |
4252 | 4248 | | |
4253 | 4249 | | |
4254 | 4250 | | |
4255 | | - | |
| 4251 | + | |
4256 | 4252 | | |
4257 | 4253 | | |
4258 | 4254 | | |
4259 | | - | |
4260 | | - | |
4261 | | - | |
4262 | | - | |
| 4255 | + | |
4263 | 4256 | | |
4264 | | - | |
4265 | 4257 | | |
4266 | | - | |
4267 | | - | |
4268 | | - | |
4269 | | - | |
| 4258 | + | |
| 4259 | + | |
| 4260 | + | |
4270 | 4261 | | |
4271 | 4262 | | |
4272 | 4263 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
587 | 587 | | |
588 | 588 | | |
589 | 589 | | |
590 | | - | |
| 590 | + | |
591 | 591 | | |
592 | 592 | | |
593 | 593 | | |
| |||
0 commit comments