GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||
GeezerVison is showing github.com — reduced usage of mutable `Settings` objects in tests by firewave · Pull Request #4798 · cppcheck-opensource/cppcheck Conversation
Collaborator
Currently the We should make sure that they are
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Collaborator
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
firewave
force-pushed
the
settings
branch
2 times, most recently
from
6ca74d2 to
ab0b8d0
Compare
Settings objects in testsSettings objects in tests
firewave
force-pushed
the
settings
branch
2 times, most recently
from
7555687 to
9575e90
Compare
Collaborator
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Collaborator
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
firewave
force-pushed
the
settings
branch
4 times, most recently
from
348cb67 to
24c5953
Compare
firewave
marked this pull request as ready for review
firewave
force-pushed
the
settings
branch
2 times, most recently
from
ed69e1c to
e7a8c98
Compare
firewave
force-pushed
the
settings
branch
3 times, most recently
from
761c51b to
28ad381
Compare
firewave
force-pushed
the
settings
branch
3 times, most recently
from
7bc59be to
edb0174
Compare
danmar
reviewed
Uh oh!
There was an error while loading. Please reload this page.
Collaborator
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Collaborator
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
|
There was an error while loading. Please reload this page.
|
I would not make local objects static just to save a few cpu cycles. Can we please stop with all these micro optimisations that only saves a few cpu cycles. It's more important with readability. Also these objects will then use some mutexes to make these objects threadsafe that has a penalty also. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Could you show some stats. With static or without static. I wonder if you can test that: |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
I will give it a spin. It is quite possible this PR is not showing the gains yet and is even showing a slight regression since I introduced several copies which weren't there before and won't be removed until I have applied all changes. I could add the follow-up changes to this PR as well but I would prefer not to make this even bigger than it already is. There's also some general change to the way we provide the settings to the common |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Doing tests I am getting some inconsistent results which is strange. So I will drop the |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
ok thanks as far as I remember that was my biggest concern. There is now some conflict.. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…sBuilder::library()`
…ges in another merge
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.