Results 1 to 5 of 5

Thread: Parsing/extracting from a binary QByteArray

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    Join Date
    Aug 2009
    Location
    Belgium
    Posts
    310
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    10
    Thanked 31 Times in 25 Posts

    Default Re: Parsing/extracting from a binary QByteArray

    I read in ... that the system might run faster if I used the native int instead of the smaller integers. Supposing for a second that speed's more important than memory, would it be worthwhile to re-cast the records into a struct of native integers after importing?
    That won't speed up the reading part of course.

    It may only be usefull if you run complex numerical algorithms on the data (for instance image manipulation, fourier transforms, color space transformations, ...).

    It won't make a difference if you're just displaying the data in a graph or logging the data in a report or so.

    Best regards,
    Marc
    Last edited by marcvanriet; 2nd December 2011 at 20:37.

  2. The following user says thank you to marcvanriet for this useful post:

    Phlucious (2nd December 2011)

Similar Threads

  1. Replies: 1
    Last Post: 22nd June 2011, 08:12
  2. Extracting int values from QByteArray
    By Tottish in forum Newbie
    Replies: 4
    Last Post: 7th April 2010, 10:41
  3. Replies: 1
    Last Post: 20th January 2010, 09:01
  4. Replies: 9
    Last Post: 25th July 2009, 13:27
  5. Extracting xml fragment from QXmlStreamReader
    By Gopala Krishna in forum Qt Programming
    Replies: 5
    Last Post: 1st December 2007, 09:14

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.