Commit 49e7a6b
perf(uucore): call rt_sigaction once not 62 times
`./coreutils true` becomes 6% faster. For some unknown reason,
`capture_startup_state` runs 62 times, so I'll just hotfix it to
immediately return from the second time onwards.
When 2d7a3bf introduced the fcntl
calls, each group of 3 calls was repeated 4 times. Some time later, it
became 62 times. Now it runs only 1 time.1 parent 0260f21 commit 49e7a6b
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
538 | 538 | | |
539 | 539 | | |
540 | 540 | | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
541 | 544 | | |
542 | 545 | | |
543 | 546 | | |
| |||
549 | 552 | | |
550 | 553 | | |
551 | 554 | | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
552 | 560 | | |
553 | 561 | | |
554 | 562 | | |
| |||
0 commit comments