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

Need to borrow allocate memory for QT arrays

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Won't Do
    • Not Evaluated
    • None
    • 6.6.0 FF
    • Core: I/O
    • None
    • All

    Description

      Hello,

       

      I'm writting a Qt  MQ API to communicate seemlessly with any kind of MQ platform such as kafka pulsar rabbitmq ... through any protocol but i'm encountring an issue with Qt IO api.

      I need to be able to borrow allocate memory from the API's message arena and pass it to  QIODevice's ringbuffers ie to QByteArray's QByteArrayData pointer in order to have a QIODevice accessible mq message payload. The use of arena is not avoidable in this situation as the advanced user can (and will) create simultaneous instances of lients to communicate with multiples brokers and will hence look forward to consume->sync->produce  the data between these broker which will make the memory release costly for embedded devices at this scale.

      I still can't wrap my head around implementing a third party IOBuffer  as this will break compatibility with a typical Qt user who would probably rely on QIODevice in his code to consume the message's payload as we all do.

      So the question is, are you open to integrate a proposal for QByteArray (QArrayData) allocation model to be strategy based for the user to provide external memory ? 

      thanks!

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            qtanything George Ransdall
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes