Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-13103

Performance of API findFirstZero in python dumper.py is poor

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • Not Evaluated
    • Qt Creator 3.3.0-beta1
    • Qt Creator 3.2.1
    • Debugger
    • None
    • 392b3f65d2ada9a2b8bb1cb15402efc659344432

    Description

      The findFirstZero API is presenting poor performance under GDB.

      Implementation (which is generic) could be improved under GDB using:

      def findFirstZero(self, p, maximum):
      l = len(p.string())
      if l > maximum:
      return -1, maximum
      return 0,l

      Base on my test, this is equivalent and faster for small null terminated string.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            hjk hjk
            toolinfo stephane petithomme
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes