Skip to content

fast-get: move to object pool#10735

Open
lyakh wants to merge 1 commit intothesofproject:mainfrom
lyakh:fastget
Open

fast-get: move to object pool#10735
lyakh wants to merge 1 commit intothesofproject:mainfrom
lyakh:fastget

Conversation

@lyakh
Copy link
Copy Markdown
Collaborator

@lyakh lyakh commented Apr 30, 2026

Instead of allocating entries manually move fast-get to an object pool.

Copilot AI review requested due to automatic review settings April 30, 2026 11:58
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Zephyr fast-get implementation to allocate/track sof_fast_get_entry objects via the shared objpool API instead of manually reallocating a linear entry array.

Changes:

  • Replace manual entry-array growth/reuse logic with an objpool_head-backed pool.
  • Update fast_get() / fast_put() entry lookup to use objpool_iterate() callbacks.
  • Allocate new entries via objpool_alloc() when no match is found.

Comment thread zephyr/lib/fast-get.c
Comment thread zephyr/lib/fast-get.c
Comment thread zephyr/lib/fast-get.c
Instead of allocating entries manually move fast-get to an object
pool.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants