Refactor getattrbehavior to avoid allocations#224
Refactor getattrbehavior to avoid allocations#224MatthieuDartiailh merged 2 commits intonucleic:mainfrom
Conversation
|
I think if catom is updated to use the fastcall protocol more optimizations can be done here (with created_args). |
|
Could the mangled name |
Can you link to a line number where you mean? |
|
Here https://github.com/nucleic/atom/blob/main/atom/src/getattrbehavior.cpp#L161 Idk if the getattr_context can be repurposed to store the name? Edit: Or better yet the method itself |
|
I don't think that's worth the tradeoff. The When I originally wrote |
MatthieuDartiailh
left a comment
There was a problem hiding this comment.
This is a very nice diff !
|
I will restart the CIs later (the API rate limits for external contributor is so annoying) and merge when they come back green. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #224 +/- ##
=======================================
Coverage 97.67% 97.67%
=======================================
Files 24 24
Lines 1074 1074
Branches 162 162
=======================================
Hits 1049 1049
Misses 12 12
Partials 13 13 |
Same as #223 but separate PR to make it easier to review.