afimb / chouette

chouette is a Java program for validating and exchanging Public Transport datas. Comes with a ruby web app : https://github.com/afimb/chouette2
http://www.chouette.mobi
Other
23 stars 22 forks source link

JAXBContext creation speedup using cache. #1

Closed laurentg closed 9 years ago

laurentg commented 9 years ago

During a Neptune to GTFS conversion, most of the time is spend creating a new JAXBContext instance when converting a new object. This PR optimize this by keeping a cache of created JAXBContext. Re-using JAXBContext is possible and thread-safe.

metienne commented 9 years ago

After Travis passing tests, this pull request is merged to the future 2.5.2 version.

metienne commented 9 years ago

Chouette V3.0.0 don't use JAXBContext anymore on Neptune import