jferard / fastods

A very fast and lightweight (no dependency) library for creating ODS (Open Document Spreadsheet, mainly for Calc) files in Java. It's a Martin Schulz's SimpleODS fork
GNU General Public License v3.0
36 stars 6 forks source link

A CharBuffer as "communication channel" #69

Closed jferard closed 7 years ago

jferard commented 7 years ago

Currently, the flush method transfers object (table, row, ...) references to a listener that writes them to a stream. This is a bad repartition for a two threads solution: one thread should do the text/xml production, and the other the writing.

A CharBuffer seems a better "communication channel". See #33

jferard commented 7 years ago

See https://github.com/jferard/charbarge for an example of how to proceed.

jferard commented 7 years ago

Was slower than the straightforward solution. There is a charbuffer branch with a test implementation.