Skip to content

Byte array allocations improvement #328

Closed

Description

@Scooletz

IMO NpgsqlBind should manage memory in a better way than reallocating parameterValues during bind time. It should hold a pool of memory chunks, MemoryStream and use it during bind time without allocations (just either write directly to the stream, or use it as a pool for parameter values). This could lower greatly number of allocations made by the library.

Activity

  1. franciscojunior commented on Aug 27, 2014

    @franciscojunior
    Member

    We have a discussion about that at #308 .

  2. Scooletz commented on Aug 27, 2014

    @Scooletz
    ContributorAuthor

    Ah yes, the reading is another part.
    I close this issue then with pointing at https://github.com/EventStore/buffer-manager as a great source foe reusing memory chunks in a managed scenario.

  3. franciscojunior commented on Aug 27, 2014

    @franciscojunior
    Member

    That's very good, @Scooletz ! Thanks for pointing it out. We will have a look at it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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