Commit ab4a0f0
authored
MINOR: small optimization by judgment (apache#19386)
judgments can help avoid unnecessary `segments.sizeInBytes()` loops
from https://github.com/apache/kafka/pull/18393/files#r2029925512
Reviewers: PoAn Yang <[email protected]>, Chia-Ping Tsai
<[email protected]>1 parent 74acbd2 commit ab4a0f0
File tree
1 file changed
+4
-3
lines changed- storage/src/main/java/org/apache/kafka/storage/internals/log
1 file changed
+4
-3
lines changedLines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
467 | 467 | | |
468 | 468 | | |
469 | 469 | | |
470 | | - | |
471 | | - | |
472 | | - | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
473 | 474 | | |
474 | 475 | | |
475 | 476 | | |
| |||
0 commit comments