-
Notifications
You must be signed in to change notification settings - Fork 64
IPC perf improvements by freem, version 2 #1871
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
IPC perf improvements by freem, version 2 #1871
Conversation
I stand by my comment from #1632 that |
I think part of our disagreement might be because I measured it in DLL mode and you didn't? With the following I still measure thousands of calls. diff --git a/src/common/IPC/Primitives.cpp b/src/common/IPC/Primitives.cpp
index cbf9508d7..aae5cff2a 100644
--- a/src/common/IPC/Primitives.cpp
+++ b/src/common/IPC/Primitives.cpp
@@ -233,6 +233,8 @@ static void InternalSendMsg(Sys::OSHandle handle, bool more, const FileDesc* han
Sys::Drop("IPC: Failed to send message: %s", error);
}
#else
+ static int count = 0;
+ printf("used %i times\n", ++count);
size_t descBytes = 0;
static std::unique_ptr<unsigned char[]> descBuffer;
static size_t descBufferSize = 0; Example output while loading Antares:
Of course when |
I mean that |
3be23a4
to
2fc65bd
Compare
Aha, okay I get it now, sorry. Fair enough, I've dropped the commit |
Other commits LGTM. |
I think this project should be more careful with contributed commits such as these. #1632 was openend by someone who is still on good terms with the original author. The participants in this PR thread burnt all bridges to the original author. I think it would be better to talk to people before using their work as is done here. For the fun of it, I asked the original author about this PR. This is their reply:
I am not quite sure you even have consensus with the author here. Please be so kind and talk to them. Edit: I had forgot "hard" in "really hard". Originally, this had been "hard as f***", which I censored with permission, to adhere to the dictator's rules. Of course, I forgot a word while doing that. |
Hmm, fair enough. I'll close this and let @VReaperV handle things in #1632, either by doing something or not. That's what I initially starting doing, then one thing leading to another I ended up opening this. (had to fix the code to have it build, so I wanted to push a branch, which lead me to squash the commit as well while at it before pushing, then I wrote in my comment that I had a corrected branch, I sent the [comment](https://github.com//pull/1632#issuecomment-3419522985) and when github suggested to open a PR I thought a bit about it and realised I almost had a PR already, so might as well open one as it could be faster)
Thank you for trying to put it in a more diplomatic way |
This is a fixed version of #1632, see #1632 (comment) for my own review.