Results 1 to 10 of 10

Thread: Iterator performance

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2011
    Posts
    34
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    6

    Default Re: Iterator performance

    Quote Originally Posted by wysota View Post
    What if you declare size as "const int"? Does it change anything?
    The same time - 84 ms.

  2. #2
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    6
    Thanked 348 Times in 333 Posts

    Default Re: Iterator performance

    So a well structured stl-style iterator is just as fast as the simplest method ?

  3. #3
    Join Date
    Nov 2010
    Posts
    315
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo
    Thanked 53 Times in 51 Posts

    Default Re: Iterator performance

    Most important question is how did you build it?
    Is it in release mode or in debug mode? I suspect that in debug mode (most developers are using it as default)!
    I wouldn't be surprised if results in alternative build mode would be much different.

  4. #4
    Join Date
    Jan 2011
    Posts
    34
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    6

    Default Re: Iterator performance

    Quote Originally Posted by MarekR22 View Post
    Most important question is how did you build it?
    Is it in release mode or in debug mode? I suspect that in debug mode (most developers are using it as default)!
    I wouldn't be surprised if results in alternative build mode would be much different.
    It was built in release mode.

Similar Threads

  1. pointer and iterator
    By mickey in forum General Programming
    Replies: 6
    Last Post: 3rd February 2008, 23:24
  2. QLinkedList iterator
    By ^NyAw^ in forum Qt Programming
    Replies: 8
    Last Post: 18th October 2007, 17:15
  3. iterator
    By mickey in forum General Programming
    Replies: 6
    Last Post: 23rd May 2006, 11:28
  4. ::iterator
    By mickey in forum General Programming
    Replies: 2
    Last Post: 20th March 2006, 23:05
  5. convert iterator
    By mickey in forum General Programming
    Replies: 8
    Last Post: 20th March 2006, 22:59

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.