Skip to content

Conversation

@BobTheBuidler
Copy link

@BobTheBuidler BobTheBuidler commented May 17, 2025

What was wrong?

ABIType.to_type_str can be called multiple times on an instance, so its result should be cached for better performance

Related to Issue #
Closes #

How was it fixed?

Todo:

  • Clean up commit history
  • Add or update documentation related to these changes
  • Add entry to the release notes

Cute Animal Picture

Put a link to a cute animal picture inside the parenthesis-->

type_str = self._type_str = self.base + sub + arrlist
return type_str

@property
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a reason we don't use cached_property here?

Copy link
Author

@BobTheBuidler BobTheBuidler May 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It won't let me comment in the correct place, so I'll ask here.

secondly, is there a reason we don't use cached_property on is_dynamic (or set it during init)?

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