Commit 852e985
committed
stream: group bool fields at tail of addrConnStream to reduce allocator size class
Four bool fields in addrConnStream were scattered among pointer- and
interface-sized fields, each forcing alignment padding before the next field:
sentLast + receivedFirstMsg @ 96-97 6 B padding (before 8B-aligned pointer)
decompressorSet @ 160 7 B padding (before 16B-aligned interface)
finished @ 248 7 B tail padding
Total: 20 B interior padding, 16 B net savings when all bools are moved to
the tail. addrConnStream shrinks from 256 B to 240 B, dropping from the
256 B to the 240 B allocator size class.
Fixes #93481 parent 9d1988d commit 852e985
1 file changed
Lines changed: 13 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1498 | 1498 | | |
1499 | 1499 | | |
1500 | 1500 | | |
1501 | | - | |
1502 | | - | |
1503 | 1501 | | |
1504 | 1502 | | |
1505 | 1503 | | |
1506 | 1504 | | |
1507 | | - | |
1508 | 1505 | | |
1509 | 1506 | | |
1510 | 1507 | | |
1511 | 1508 | | |
1512 | 1509 | | |
1513 | | - | |
| 1510 | + | |
| 1511 | + | |
| 1512 | + | |
| 1513 | + | |
| 1514 | + | |
| 1515 | + | |
| 1516 | + | |
| 1517 | + | |
| 1518 | + | |
| 1519 | + | |
| 1520 | + | |
| 1521 | + | |
| 1522 | + | |
1514 | 1523 | | |
1515 | 1524 | | |
1516 | 1525 | | |
| |||
0 commit comments