mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
4c6194a2ad
The detectNumberOfBuffers() method attempted to scale the read buffer count based on the number of available processors, but used Math.min(4, nextPowerOfTwo) which effectively caps the result at 4 regardless of CPU count. For systems with fewer than 3 processors, the buffer count would be reduced below 4, but this edge case adds complexity without measurable benefit. Simplify BUFFER_COUNT to a constant value of 4, removing the unnecessary CPU-detection logic. Closes gh-36872 Signed-off-by: seungchan <s24041@gsm.hs.kr>