Skip to content

Reuse buffers and reduce allocations in GSSInputStream #3251

Description

@vlsi

Describe the issue

Currently, GSSInputStream makes a number of allocations for every read call.

In fact, we know backend never produces messages that exceed 16KiB, so we could use 16KiB buffer in case of GSS connection, and GSSInputStream could peek into VisibleBufferedInputStream's buffer.

The following allocations could be removed:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions