Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Conversation

tao-stones
Copy link
Contributor

Problem

This is a draft based on #33513 and #33471

Next step: make ComputeBudgetLimits part of StaticTransactionMeta, so the calls to process_compute_budget_instructions() can be reduced to once (per epoch).

Summary of Changes

  • Add ComputeBudgetLimits to TransactionMeta with TTL (max_age_slot) to invalidates cached value when new epoch (due to potential feature_set change)
  • Stick RuntiemTransaction types to create-then-readonly pattern to make it safe for multi-threads,
  • Add renew_from() to discard expired RuntimeTransaction and create one instance when new epoch.

Fixes #

tao-stones and others added 21 commits October 3, 2023 22:24
… itself, so CB instructions can be processed elsewhere without involving CompueBudget
* Add Database::compact_range_cf method

* Add test of CompactionFilter purge
These entries were found to improve compaction performance when
LedgerCleanupService was performing direct compactions on each primary
index. Cleaning by primary index has been deprecated for a while, and
as such, these dummy entries are no longer needed and can be removed.
…ana-labs#33498)

* Adjust test_purge_transaction_status_exact to test slots that cross primary indexes

* Minimize deletes by checking the primary-index range

* Fix test_purge_special_columns_compaction_filter
* chore: remove unused deps

* ci: increase regression of build redundancy
* Define generic AbiExample for OnceLock

* Guard with cfg...

cargo-test-sbf (governance/addin-mock/program, governance/program):
error[E0658]: use of unstable library feature 'once_cell'
   --> src/abi_example.rs:559:36
     |
 559 | impl<T: AbiExample> AbiExample for std::sync::OnceLock<T> {
     |                                    ^^^^^^^^^^^^^^^^^^^^^^
     |
     = note: see issue #74465 <rust-lang/rust#74465> for more information
     = help: add `#![feature(once_cell)]` to the crate attributes to enable
* Add error messages for BlockstoreError

* display underlying errors

* address PR comments: remove unnecessary error from msg

Co-authored-by: steviez <stevecz@umich.edu>

* fix typo

Co-authored-by: steviez <stevecz@umich.edu>

---------

Co-authored-by: steviez <stevecz@umich.edu>
@github-actions github-actions bot added the stale [bot only] Added to stale content; results in auto-close after a week. label Nov 3, 2023
@github-actions github-actions bot closed this Nov 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
stale [bot only] Added to stale content; results in auto-close after a week.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants