Jan 28th, 2009, 12:45 PM
Improving Spring load time
My application has a lot (about 100) of files with spring configurations that are included in the applicationContext.xml. With all these configurations, it is necessary about 10 seconds to load all the configurations.
Is it possible to save a kind of "binary" version of the application context and then load it instead of parsing all the xml files? The load time should be minor, correct?
Thank you for your help.
Jan 28th, 2009, 04:09 PM
Why is the loadtime so important? As long as it performs fast at runtime after loading it should be fine.
also about a 100 files is way to much imho. Each file is validated and parsed which generates massive overhead. One quick solution, cut down the amount of files.