IPC perf improvements by freem, version 2#1871
IPC perf improvements by freem, version 2#1871necessarily-equal wants to merge 5 commits intoDaemonEngine:masterfrom
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. Details(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.