I want make mybatis parse xml async

32 views
Skip to first unread message

Jaylan Zhou

unread,
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
Forward
0 new messages