meilisearch / meilisearch/arroy

Something else I noticed is that 12% of the time is spent on this function:

Open
#136 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

indexing performance
Dominant language
Rust
Stars
311
Forks
17
PR merge metrics
No merged PRs in 30d

Description

Something else I noticed is that 12% of the time is spent on this function:
image
image

We can probably optimize that a bit by sharing the allocation between the successive calls or at least specifying the capacity if that helps (but rust should be able to guess it in this case 🤔)

Originally posted by @irevoire in https://github.com/meilisearch/arroy/issues/130#issuecomment-2966791774

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the profiling screenshots to identify the function responsible for the reported 12% of runtime and inspect its successive calls and allocations. Measure whether sharing an allocation or specifying capacity improves the workload, and consider the issue complete only when the optimization is validated without changing behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
performance
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.