I want make mybatis parse xml async

Skip to first unread message

Jaylan Zhou

Oct 25, 2022, 1:51:48 AM10/25/22
to mybatis-user
Hi, All
I need to reduce app startup time, so I get the flamegraph, it cast long time in mybatis xml load resource
So I create a thread pool to parse the xml, but its go wrong
when parse <includes> , it have NullPointerException when get child for index, I think the node will be operate child nodes by another thread,  so I read source code, but maybe node will not be singleton?
so do you have some suggestions? and where will make node not safety?
Reply all
Reply to author
0 new messages