Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert dedicated dict_key type to a 1-element map #276

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kannibalox
Copy link
Contributor

@kannibalox kannibalox commented Dec 16, 2024

This shaves 8 bits off an Object (48 -> 40). Some of this is immediately made back up by the overhead of dealing with a full-fledged map instead of a pair, but the use of dict_key is largely limited to function definitions.

This is just an initial proof-of-concept, if you don't have any problems with it I can remove the {is/as}_dict_{key/obj} methods entirely and refactor the rtorrent PR to match.

This shaves 8 bits off a Object. Some of this is immediately made back
up by the overhead of dealing with a full-fledged map instead of a
pair, but the use of dict_key is largely limited to function definitions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant