Skip to content

flush behavior during packing #33

Description

@strssndktn

Two issues popped up in transit-clj which are better recorded here:

In essence:

The flushwriter flushes down the data from the output channel after serializing every single element of a data structure, causing a performance drop because the process will need to wait until the operating system forced every single newly serialized bit of data out onto the disk (or in the example of other streams, fragment it somehow on the network level).

I don't think the flush there is necessary but should move only to the end of the whole serialization process in write.

I would be happy to help or provide patches, just let me know. Thanks! :)

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