how can i improve the CPU Utilization for the specific time consuming functions (like xml parsing)
how can i improve the CPU Utilization for the specific time consuming functions (like xml parsing)
By writing efficient code.
Writing efficient code is something a post on a forum can't cover.
Another thing to do is to build with the maximum level of optimization of your compiler.
There is no one answer to this.
You have to show your code, and we can then suggest how to optimize it.
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
I agree with high_flyer, that you have not supplied sufficient information to properly answer this question. That said, if too much time is spent process XML, you have a few choices depending on the negative side effect. For example:
- Move the processing to its own thread so that it does not interfere with other processing, such as the event loop.
- If you simply have too much XML to process and the libraries are too slow, write your own custom parser (skeptical that this will help).
Sorry, my reply was posted twice.... poking around trying to remove this specific post.
Bookmarks