Uploaded image for project: 'MariaDB Connector/Python'
  1. MariaDB Connector/Python
  2. CONPY-280

Performance optimization for internal methods

    XMLWordPrintable

Details

    • Task
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 1.1.9
    • 1.1.10
    • Generic
    • None
    • 3.10

    Description

      Internal methods like parse_statement, execute_text et. al. use METH_VARARGS in the PyMemberDef structure and parse the arguments via PyArg_ParseTuple.

      Since we don't need to check the types for variable arguments we should use METH_FASTCALL (which is available since Python 3.7) and declare the functions as _PyFuncFastCall.

      Methods which only expect a single parameter should use METH_O.

      Attachments

        Activity

          People

            georg Georg Richter
            georg Georg Richter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

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