Skip to content

How to speed up the building process #5176

Answered by irevoire
Gnosnay asked this question in Q&A
Discussion options

You must be logged in to vote

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:

  • You can either cd into the crate you're working on. For example, if you're only working on milli you can run cd crates/milli and then cargo build will only build this crate.
  • Or you can specify the package you want to build with the -p option of cargo 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…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Gnosnay
Comment options

Answer selected by Gnosnay
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants