java - Load XML for each request -


In my application an XML loads and updates XML elements for each request.

I have 10 to 20 requests at one time, the XML loading process is taking some time for each request because it is in the synchronized block.

The XML size is 500 KB and the DOM Parser (Legacy code) is used

Is there any way to improve performance?

Without knowing more about your application, other users of XML data, or on your environment Control, you can consider keeping the data server on the data server (whether it's a bunch of files or different files, each 500kb?) And a periodic copy of the job send a proper copy back to the original source on a proper copy for.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -