Hi,
I'm the lead developer behind the open source project integrating
Micronaut and the process automation platform
Camunda.
Camunda uses MyBatis with over 50 XML mapping files, see
mappings
Micronaut is known for its good startup times but unfortunately the bootstrapping of the Camunda engine takes a few seconds. The bottleneck is the parsing of MyBatis' XML mapping files, see also
issue #19
I thought about the following optimizations to improve start up times:
1. Use some kind of lazy mapping initialisation (I didn't find any options)
2. Replace XML Mappings with the Java API? Is there a converter somewhere? (I didn't find any converter and there is too much to convert it manually)
3. Switch MyBatis' sequential parsing of XML mappings to parallel parsing. (I tried it some time ago and it helps but I didn't find the best place to synchronize the parallel executions, see branch
353-fixup)
Do you have any idea how to improve start up time?
Kind Regards
Tobias