Results 1 to 2 of 2

Thread: Improving Spring load time

  1. #1
    Join Date
    Nov 2007
    Posts
    11

    Default Improving Spring load time

    Hi all,

    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.
    Best regards,

    Helder Sousa

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,629

    Default

    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.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •