-
my laptop: for my case, cargo build will cost around 8 minutes. the most costy of building is benchmark one. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @Gnosnay, Meilisearch is pretty slow to build, sadly but there are a few strategies you can try to improve the build time: Specify the package you want to buildBuilding only the package you're working on will improve the compile time since you won't build the benchmarks, meilitool, and other stuff:
When you don't need to index a lot of documents, build in debug modeSometimes you'll need to index a lot of documents, and in this case, it may be mandatory to build meilisearch in Improve the linking timeThe default linker of macOS is not very good, and meilisearch spends a lot of time linking artifacts. |
Beta Was this translation helpful? Give feedback.
Hey @Gnosnay,
Meilisearch is pretty slow to build, sadly but there are a few strategies you can try to improve the build time:
Specify the package you want to build
Building only the package you're working on will improve the compile time since you won't build the benchmarks, meilitool, and other stuff:
cd
into the crate you're working on. For example, if you're only working onmilli
you can runcd crates/milli
and thencargo build
will only build this crate.-p
option ofcargo build
:cargo build -p meilisearch
for example.When you don't need to index a lot of documents, build in debug mode
Sometimes you'll need t…