-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Make the relation between msgid and symbol 1:1instead of 1:N #2992
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make the relation between msgid and symbol 1:1instead of 1:N #2992
Conversation
43a7959 to
879b2d7
Compare
|
There's a lot to review here, just wanted to mention that I'm in the progress of reviewing it, but it's going to take a bit. |
|
Hi @PCManticore, thank you for taking the time to review this. I know it's huge, I could try to separate the style/lint issues from the main refactor if you want. I'm still working on simplifying the way the |
1c1e1a9 to
9a66bc9
Compare
|
A rebase of the Regarding performances, I tested by analysing the current pylint code, so it seems that results are not comparable because I call "is_enabled" more on the new pylint code (there is more class, with the new MessageId), I'll have to do a more stable test and take all function into account. Seems like it could be a little slower. Let's make #1164 works and then optimize performances later (I have some ideas, using msgid as hash instead of a MessageId for example) |
|
@PCManticore, I'm going to take a look at the two failing tests in python3.5 this week, but apart from that, the pull request won't change anymore. |
d6abb93 to
bbef206
Compare
|
@PCManticore do you want me to break this one into multiple smaller merge requests? |
|
@PCManticore I'm going to simplify this and create other merge requests for clarity. |
b41617e to
4a264f6
Compare
|
@PCManticore I created #3040, #3041 and #3042 in order to make this one easier to review :) |
2dde2ef to
a77a7b6
Compare
Also fixed spelling in C0112 to C0116 messages following the review of pull-request pylint-dev#2036 by Ashley Whetter. See also pylint-dev#2075, pylint-dev#2077, pylint-dev#2262, pylint-dev#2654, pylint-dev#2805, pylint-dev#2809, pylint-dev#2844, pylint-dev#2992 and pylint-dev#3013 for full historical context.
a77a7b6 to
69b0fa2
Compare
69b0fa2 to
7612725
Compare
7612725 to
6f37e83
Compare
Will permit to improve performance with less check but more importantly simplify the message store a lot.
Also add a lot of unit tests.
6f37e83 to
4aa99db
Compare
|
@PCManticore, this one is ready for review. I can't make it significantly easier to review anymore, but I did not change the functional tests so the new message backend work as well as the one before. For now the performance are not better, but they will be after we merge #3013, see here for some performance analysis regarding this change. |
|
Thanks @Pierre-Sassoulas ! This looks good to go for me, does it depend on any other PR? Let me know if that's the case. |
|
Nice! It's mergeable as it is, then I'll update the two PR that depends on this one. We're getting closer! :) |
Also fixed spelling in C0112 to C0116 messages following the review of pull-request pylint-dev#2036 by Ashley Whetter. See also pylint-dev#2075, pylint-dev#2077, pylint-dev#2262, pylint-dev#2654, pylint-dev#2805, pylint-dev#2809, pylint-dev#2844, pylint-dev#2992 and pylint-dev#3013 for full historical context.
Also fixed spelling in C0112 to C0116 messages following the review of pull-request pylint-dev#2036 by Ashley Whetter. See also pylint-dev#2075, pylint-dev#2077, pylint-dev#2262, pylint-dev#2654, pylint-dev#2805, pylint-dev#2809, pylint-dev#2844, pylint-dev#2992 and pylint-dev#3013 for full historical context.
Also fixed spelling in C0112 to C0116 messages following the review of pull-request pylint-dev#2036 by Ashley Whetter. See also pylint-dev#2075, pylint-dev#2077, pylint-dev#2262, pylint-dev#2654, pylint-dev#2805, pylint-dev#2809, pylint-dev#2844, pylint-dev#2992 and pylint-dev#3013 for full historical context.
Description
At the cost of forcing to rename the old symbol when you create an old_name. Making the couple msgid/symbol a 1-1 relation removes legacy functions and complexity in order to ease implementation and optimize performance in the MessageStore. It will also permit to have multiple messages with the same old name for #1164.
Type of Changes