Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-7807

QIODevice::readLine(qint64 maxSize = 0) default argument performs poorly (should be documented)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • None
    • 4.6.1
    • Documentation
    • None
    • Vista SP2
      Visual Studio 2008 SP1
      Qt 4.6.1 for VS 2008

    Description

      Calling:

      QByteArray QIODevice::readLine (qint64 maxSize = 0)

      with the default argument (zero) is a LOT slower than providing a max line length. I believe this should be mentioned in the documentation, it would have saved me hours of debugging

      Attachments

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

        Activity

          People

            gbk Martin Smith (Qt)
            mattc Matteo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes