I just wrote a question about caching and it got me thinking. Is using a server process with a strict API any slower then a server lib statically linked (possibly in its own thread)?
If it is slower, how much overhead is there?
The OS is linux but most of my development and testing is on windows.
Yes, it is slower as it involves context switches and the extra work of copying data around. This is for example one reason why SQLite is popular.
As for how much overhead, “It depends”, but the answer is likely “Not enough to be a problem for you”. As always if in doubt the only thing to do is try both ways and benchmark/profile them.