Provide frontend function to search for blocks by type
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 14
- Forks
- 9
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 33
Description
This would avoid the need for iterating through all blocks within each policy provider for the common case of looking up blocks by their type code.
It is expected that each BPA will already have a fast lookup by type code already, so an associated host callback could make use of that fast lookup. As a fallback, the callback pointer can be allowed to be NULL in which case the BSL backend can iterate through all blocks as the example PP does in get_target_block_id().
This is follow-on to #61 for a later release.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the frontend function and associated host callback described in the issue, then read the example PP implementation of get_target_block_id(). Done means the API supports a fast provider lookup by type code while allowing a NULL callback to fall back to iterating through blocks.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- api, backend-api-design
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100