Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Netty default allocator whenever it is pooled otherwise fallback to adaptive allocator #5379

Merged
merged 1 commit into from
Nov 5, 2024

Commits on Oct 29, 2024

  1. Use Netty default allocator whenever it is pooled otherwise fallback …

    …to adaptive allocator.
    
    Motivation:
    
    Vert.x should use Netty's default allocator whenever possible in order to minimize the resources for pooled allocation (thread-local direct buffers, arenas).
    
    Changes:
    
    VertxByteBufAllocator.POOLED_ALLOCATOR reuses ByteBufAllocator.DEFAULT when it is pooled otherwise uses AdaptiveByteBufAllocator.DEFAULT.
    
    TCP server/client should use VertxByteBufAllocator.POOLED_ALLOCATOR instead of PooledByteBufAllocator.DEFAULT.
    vietj committed Oct 29, 2024
    Configuration menu
    Copy the full SHA
    9cea635 View commit details
    Browse the repository at this point in the history