Results 1 to 4 of 4

Thread: how can i improve CPU utilization

  1. #1
    Join Date
    Sep 2009
    Posts
    54
    Thanks
    4
    Thanked 3 Times in 3 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default how can i improve CPU utilization

    how can i improve the CPU Utilization for the specific time consuming functions (like xml parsing)

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: how can i improve CPU utilization

    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.

  3. #3
    Join Date
    Jan 2010
    Posts
    73
    Thanks
    6
    Thanked 8 Times in 8 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: how can i improve CPU utilization

    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).

  4. #4
    Join Date
    Jan 2010
    Posts
    73
    Thanks
    6
    Thanked 8 Times in 8 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: how can i improve CPU utilization

    Sorry, my reply was posted twice.... poking around trying to remove this specific post.

Similar Threads

  1. How to improve the font style?
    By aaron in forum Qt Programming
    Replies: 1
    Last Post: 19th January 2010, 06:58
  2. Improve performance QPainter
    By Programm3r in forum Qt Programming
    Replies: 2
    Last Post: 12th November 2009, 07:23
  3. High CPU Utilization
    By navi1084 in forum Qt Programming
    Replies: 4
    Last Post: 10th July 2009, 09:37
  4. QDial looks too ugly, Why not improve it
    By lmax in forum Qt Tools
    Replies: 2
    Last Post: 13th March 2009, 21:03
  5. How to improve fonts in designer ?
    By probine in forum Qt Tools
    Replies: 3
    Last Post: 25th October 2006, 20:38

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.