mirror of https://github.com/apache/kafka.git
Avoids stream allocation on hot code path in Admin#listOffsets This patch avoids allocating the stream reference pipeline & spliterator for this case by explicitly allocating the pre-sized Node[] and using a for loop with int induction over the specified IDs List argument. Reviewers: Apoorv Mittal <apoorvmittal10@gmail.com>, Kirk True <kirk@kirktrue.pro>, David Arthur <mumrah@gmail.com> |
||
|---|---|---|
| .. | ||
| src | ||
| .gitignore | ||