openlcb / OpenLCB_Java

Java implementation of OpenLCB / LCC protocols. This implementation operates inside JMRI, and can also be used inside Android apps.
6 stars 9 forks source link

Batches output messages for client callbacks. #140

Closed balazsracz closed 5 years ago

balazsracz commented 5 years ago

Fixes performance problem related to thread jumping when the client instructs to operate in single-threaded mode.

Batches up to 150 packets to send from the output send queue into one callback to execute on the client's executor thread.