Skip to content

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

Open
kannibalox wants to merge 1 commit intorakshasa:masterfrom
kannibalox:feature/dict-key-rm
Open

Convert dedicated dict_key type to a 1-element map#276
kannibalox wants to merge 1 commit intorakshasa:masterfrom
kannibalox:feature/dict-key-rm

Conversation

@kannibalox
Copy link
Copy Markdown
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