This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Mark.Shannon
Recipients Mark.Shannon, methane, vstinner
Date 2021-05-21.15:42:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1621611739.04.0.851029587455.issue44206@roundup.psfhosted.org>
In-reply-to
Content
The memory saving comes from converting:

    Py_ssize_t dk_size;
    dict_lookup_func dk_lookup;

to:

   uint8_t dk_log2_size;
   uint8_t dk_loopup_kind; /* Only 3 possible values */
   uint32_t dk_version;

which saves 8 bytes on a 64 bit machine (no saving on a 32 bit machine).
History
Date User Action Args
2021-05-21 15:42:19Mark.Shannonsetrecipients: + Mark.Shannon, vstinner, methane
2021-05-21 15:42:19Mark.Shannonsetmessageid: <1621611739.04.0.851029587455.issue44206@roundup.psfhosted.org>
2021-05-21 15:42:19Mark.Shannonlinkissue44206 messages
2021-05-21 15:42:19Mark.Shannoncreate