Replacing custom hashmap MetaMethodIndex with standard maps#2020
Replacing custom hashmap MetaMethodIndex with standard maps#2020daniellansun merged 1 commit intomasterfrom
Conversation
|
LGTM 🙂 |
|
The changes in Why are the methods deprecated in Besides replacing with standard types, does this improve performance or memory usage or some other characteristic? |
There are two cases, both of them are unused. for our runtime this method has no use. We have isValidMethod instead, which is also used in this case. The method is just a wrapper around that for error reporting. This could be useful in theory, but I don't see why we should keep it. I mean what is the scenario for it?
It should be a bit more threadsafe since I use the concurrent hashmap. But I think in department we will have to do quite a bit more work. Otherwise the goal was no improving performance or memory usage but maintainability. It is now much more clear what this structure is compared to before. |
|
Merged. Thanks. |
This replaces the old custom hashmap variant in MetaMethodIndex with standard maps. Problem though is that this change is a breaking change. MetaMethodIndex itself looks very different now, but is not likely used. There is one protected method in MetaClassImpl which is also used for example by ExpandoMetaClass, which I consider slightly more as problem. Also I think the refactoring needs input on how to improve further