Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-34901

remove malloc/free per packet from the protocol

    XMLWordPrintable

Details

    Description

      If the client and server are using protocol with compression the server calls my_uncompress() from my_net_read_packet_reallen() — for every incoming packet. And my_uncompress() calls malloc() and then free(). Again, every single time.

      It might be beneficial to get rid of this and use a preallocated buffer instead.

      Attachments

        Activity

          People

            Unassigned Unassigned
            serg Sergei Golubchik
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.