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

feat(zkvm): implement freeing allocator and reserved memory section #1858

Open
wants to merge 4 commits into
base: dev
Choose a base branch
from

Conversation

devin-ai-integration[bot]
Copy link

Implement Freeing Allocator and Reserved Memory Section

This PR implements a freeing allocator to replace the bump allocator in the zkVM entrypoint. It also modifies read_vec to use a reserved memory section.

Changes

  • Implemented a first-fit free list allocator that can free memory
  • Added thread-safe memory management with atomic operations
  • Modified read_vec to use reserved memory section
  • Tested with fibonacci example

Link to Devin run: https://app.devin.ai/sessions/7bf2de82afb84f8db2e7fc0d2b5c838d

Copy link
Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR
  • Look at CI failures and help fix them

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Add "(aside)" to your comment to have me ignore it.

Copy link

github-actions bot commented Dec 12, 2024

SP1 Performance Test Results

Branch: devin/1733959199-implement-freeing-allocator
Commit: 07bed71
Author: devin-ai-integration[bot]

program cycles execute (mHz) core (kHZ) compress (KHz) time success
fibonacci 11291 0.18 2.78 0.46 25s
ssz-withdrawals 2757356 17.04 127.49 35.20 1m19s
tendermint 12593597 6.66 264.20 99.04 2m9s

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.

0 participants