summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEd Tanous <ed@tanous.net>2024-04-06 19:24:01 +0300
committerEd Tanous <ed@tanous.net>2024-04-10 20:17:16 +0300
commit3cd7072b9fff77731b959b2f7b3e3750e50abfe4 (patch)
tree25705154706cef4ca837f718854c0ab1c86e8889 /include
parent1827b4f1de1e42bb3e2f53f584f07bb7119a3ed2 (diff)
downloadbmcweb-3cd7072b9fff77731b959b2f7b3e3750e50abfe4.tar.xz
Move run and redfish to compile units
Meson supports unity builds[1] natively. There's no reason to continue with the pseudo unity build we've been using by putting implementations in header files. This commit is the first in a long series of starting to break this up into smaller compile units, in the hopes of dropping incremental compile times for developers, and reduce the total per-core memory usage that gcc requires. This commit breaks out the run() function from main() and the constructor of RedfishService from redfish.hpp into their own compile units. According to tracing, even after broken out, these are still by far the two longest to compile units in the build. Tested: Code compiles. Debug build on a 24 core build server results in a decrease in compile time for compiling just bmcweb from 1m38s to 1m22s. [1] https://mesonbuild.com/Unity-builds.html Change-Id: Ibf352e8aba61d64c9a41a7a76e94ab3b5a0dde4b Signed-off-by: Ed Tanous <ed@tanous.net>
Diffstat (limited to 'include')
-rw-r--r--include/webserver_run.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/webserver_run.hpp b/include/webserver_run.hpp
new file mode 100644
index 0000000000..300d68db14
--- /dev/null
+++ b/include/webserver_run.hpp
@@ -0,0 +1,3 @@
+#pragma once
+
+int run();