-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
Two issues popped up in transit-clj which are better recorded here:
- Writing large object to file is slow transit-clj#43
- When using with HTTP Chunked Transfer Encoding, 6.7MB becomes 10.5MB due to chunking overheads transit-clj#46
In essence:
| flushWriter(); |
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
Labels
No labels