Skip to content

Commit

Permalink
Comments on puts optimization opportunity.
Browse files Browse the repository at this point in the history
  • Loading branch information
evoskuil committed Apr 17, 2024
1 parent 422ab9f commit c71b802
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/bitcoin/database/tables/archives/puts.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ struct puts
using output_links = std_vector<out::integer>;
using array_map<schema::puts>::arraymap;

// TODO: There is a potential optimization available given that the inputs
// (spend puts) for a given transaction are sequential. This means that an
// offset with count are sufficient to store and number of spends. This is
// more efficient if store averages more than two spends per tx (maybe).

struct slab
: public schema::puts
{
Expand Down

0 comments on commit c71b802

Please sign in to comment.