Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(v0.26 <- #1822) Optimize CDP Begin Blocker #1897

Open
wants to merge 2 commits into
base: rp-v0.26-module-optimizations
Choose a base branch
from

Conversation

pirtleshell
Copy link
Member

@pirtleshell pirtleshell commented Apr 29, 2024

Description

Based on top of #1895

Checklist

  • Changelog has been updated as necessary.

nddeluca and others added 2 commits April 29, 2024 11:55
* optimize cdp begin blocker by removing unnecessary checks, reusing data
and prefix stores in loops, and reducing number of repeated calculations

* fix panic for new cdp types if both previous accural time and global
interest factor are not set

* do not touch global interest factor if no CDP's exist; revert to panic
if global interest factor is not found since this is an unreachable
state by normal keeper operation -- it can only be reached if store
is modified outside of public interface and normal operation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants