Skip to content

Optimize top-payers heap for large heaps #550

Description

@Levi-Ojukwu

Description:

The get_top_payers function uses O(n²) selection. For large heaps, this is inefficient.

Why it matters: Heap performance affects dashboard load times.

Acceptance Criteria:

  • Analyze current implementation
  • Implement more efficient top-k selection
  • Benchmark before/after

Relevant Files: contracts/invoice_liquidity/src/top_payers.rs:163-199


Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions