Repository navigation
Replies: 1 comment
|
I recently started contributing to this project, and I would also really appreciate it if the build time were shorter. I suppose the best approach would be to open an issue with your suggestion and wait for feedback from the maintainer. See https://github.com/DeusData/codebase-memory-mcp/blob/main/CONTRIBUTING.md#pull-request-guidelines - it explicitly mentions Build system / Makefile changes. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I tested building
codebase-memory-mcpwith Meson + Ninja on my laptop (i5-8250U 4C/8T, 8GB RAM, Arch Linux, GCC 16.2.1) and compared it againstMakefile.cbm.Make (
make -j8 -f Makefile.cbm cbm)Meson + Ninja (
ninja -C build-release codebase-memory-mcp)Meson + Ninja finished ~76s faster (
371.65svs447.33s, even with-O3vs-O2) becauseMakefile.cbm(line 1394) compiles allPROD_SRCSandEXTRACTION_SRCSin a single$(CC)call at the end rather than compiling.ofiles in parallel. Incremental rebuilds after editing a single file insrc/also take ~1-2s instead of recompiling all first-party sources.Branch with the Meson build files (
meson.build,src/meson.build,vendored/meson.build,tests/meson.build):https://github.com/0xkhalz/codebase-memory-mcp/tree/feat/meson-build-system
Would you be interested in a PR adding Meson support (or alternatively splitting
PROD_SRCSinto.otargets inMakefile.cbm)?All reactions