Skip to content

Use #method_defined? optimization#214

Merged
sunny merged 2 commits intosunny:mainfrom
viralpraxis:use-method-defined-optimization
Jan 17, 2026
Merged

Use #method_defined? optimization#214
sunny merged 2 commits intosunny:mainfrom
viralpraxis:use-method-defined-optimization

Conversation

@viralpraxis
Copy link
Contributor

#instance_methods allocates an array (and we do theta(n) search afterwards).

`#instance_methods` allocates an array (and we do theta(n) search afterwards).
Copy link
Owner

@sunny sunny left a comment

Choose a reason for hiding this comment

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

Oh, love that! <3

@viralpraxis
Copy link
Contributor Author

Hey @sunny can we merge this one?

@sunny
Copy link
Owner

sunny commented Jan 17, 2026

Of course, thanks for the ping.

@sunny sunny merged commit 9a7cfd6 into sunny:main Jan 17, 2026
7 checks passed
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.

2 participants