egueli / TraCI4J

A high-level Java library to communicate with SUMO (Simulation of Urban MObility) through its TraCI protocol.
GNU General Public License v3.0
41 stars 27 forks source link

Speedup #12

Closed baumfalk closed 9 years ago

baumfalk commented 9 years ago

I wrapped DataOutputStreamd and DataInputStream in a BufferedInput/OutputStream. See this Stackoverflow post. For a simple sample scenario of 36000 steps, were an agent is added every step, the Traci4J from the master branch runs in 63000 ms, while the updated version runs in 42000 ms.