bitshares / bitshares/bitshares-core

Improve `database_api_impl::on_objects_removed` performance

Open
#746 3 comments 0 reactions 0 assignees View on GitHub
api performance
Dominant language
C++
Stars
1.2k
Forks
660
Avg merge
8h 17m
Merged PRs (30d)
26

Description

In the lambda it looks for elements by iterating through a vector, which is inefficient.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at database_api_impl::on_objects_removed and inspect the lambda that searches the vector. Determine how object removal is represented and measure the current lookup behavior before choosing a less costly approach. Done means the removal handling preserves its existing behavior while avoiding the inefficient iteration; the issue names no test or benchmark to run.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
backend, performance
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 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.