Skip to content

Feat/storage cpu micro optimizations - #117

Merged
jhayniffy merged 3 commits into
InsurNiffy:mainfrom
Kingsman-99:feat/storage-cpu-micro-optimizations
Mar 25, 2026
Merged

Feat/storage cpu micro optimizations#117
jhayniffy merged 3 commits into
InsurNiffy:mainfrom
Kingsman-99:feat/storage-cpu-micro-optimizations

Conversation

@Kingsman-99

Copy link
Copy Markdown
Contributor

Fix #25

Changes

  • policy.rs — removed dead compile-time branch (QUOTE_TTL_LEDGERS == 0)
  • premium.rs — removed unchecked compute_premium (overflow risk); optimized
    build_line_items to compute each factor once instead of twice
  • storage.rs — added comments documenting write counts and storage tier rationale
  • PERFORMANCE.md — before/after for all 6 optimization areas including integer
    width audit and storage tier audit
  • .gitignore — updated with all necessary exclusions

Closes #25

@drips-wave

drips-wave Bot commented Mar 25, 2026

Copy link
Copy Markdown

@Kingsman-99 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@jhayniffy
jhayniffy merged commit f23dcba into InsurNiffy:main Mar 25, 2026
0 of 3 checks passed
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.

Contract — Storage and CPU micro-optimizations: measured improvements only

2 participants