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

Cached state values in the program state #840

Merged
merged 39 commits into from
Apr 29, 2024
Merged
Changes from 1 commit
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
105b87a
add cache
iFrostizz Apr 17, 2024
9babe31
implement cache reads
iFrostizz Apr 18, 2024
7c33c70
actually cache reads
iFrostizz Apr 18, 2024
d29598e
implement cache delete and handle borsch errors
iFrostizz Apr 18, 2024
78068ba
use only one cache map
iFrostizz Apr 18, 2024
92e7310
remove flushed bool
iFrostizz Apr 18, 2024
d1d4ff9
Merge branch 'main' into cached_rw
iFrostizz Apr 18, 2024
1635bd5
root of transactions by stateless merkledb
bianyuanop Jan 19, 2024
aa44f97
make root generation a function
iFrostizz Apr 26, 2024
68e49b6
preallocate memory for merkle array and consumebytes flag
bianyuanop Jan 19, 2024
ce00289
add <*.code-workspace> to .gitignore and remove it from git commit
bianyuanop Jan 20, 2024
e551960
move root generation func to merkle package, tx root by items of [txI…
bianyuanop Jan 20, 2024
7442836
rebase & blk marshal/unmarshal & merkleroot to ids.ID
bianyuanop Jan 28, 2024
07993bf
write benches for the merkle package
iFrostizz Mar 18, 2024
214005b
use crypto/rand, fix var name, report allocs
iFrostizz Mar 22, 2024
058d7e7
put the 10k bench back
iFrostizz Mar 22, 2024
4aec589
pass config by parameter
iFrostizz Mar 31, 2024
d6c4913
Merge branch 'main' into cached_rw
iFrostizz Apr 26, 2024
04ec581
Merge branch 'main' into HEAD
iFrostizz Apr 26, 2024
2ff02e0
happy clippy
iFrostizz Apr 26, 2024
8d1fca0
borrow V
iFrostizz Apr 26, 2024
aa1ac4c
add TODO
iFrostizz Apr 26, 2024
fb2df78
Merge branch 'cached_rw' of github.com:iFrostizz/hypersdk into cached_rw
iFrostizz Apr 26, 2024
1cd0f97
Revert "pass config by parameter"
iFrostizz Apr 26, 2024
674d2bf
Revert "put the 10k bench back"
iFrostizz Apr 26, 2024
57e3ad4
Revert "use crypto/rand, fix var name, report allocs"
iFrostizz Apr 26, 2024
7e5b9db
Revert "write benches for the merkle package"
iFrostizz Apr 26, 2024
c6c2f6c
Revert "rebase & blk marshal/unmarshal & merkleroot to ids.ID"
iFrostizz Apr 26, 2024
0989981
Revert "move root generation func to merkle package, tx root by items…
iFrostizz Apr 26, 2024
ea05d30
Revert "add <*.code-workspace> to .gitignore and remove it from git c…
iFrostizz Apr 26, 2024
34937c0
Revert "preallocate memory for merkle array and consumebytes flag"
iFrostizz Apr 26, 2024
a72ca67
Revert "make root generation a function"
iFrostizz Apr 26, 2024
dcabc00
Revert "pass config by parameter"
iFrostizz Apr 26, 2024
6a620ca
Revert "move root generation func to merkle package, tx root by items…
iFrostizz Apr 26, 2024
255510b
Revert "preallocate memory for merkle array and consumebytes flag"
iFrostizz Apr 26, 2024
2a08609
Revert "make root generation a function"
iFrostizz Apr 26, 2024
81aef46
merge main!
iFrostizz Apr 26, 2024
5687417
merge imports
iFrostizz Apr 26, 2024
378ae12
Merge branch 'main' into cached_rw
richardpringle Apr 26, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add TODO
iFrostizz committed Apr 26, 2024

Verified

This commit was signed with the committer’s verified signature.
targos Michaël Zasso
commit aa1ac4ca6264a79d4438d83ae7a2e24065388a37
2 changes: 1 addition & 1 deletion x/programs/rust/wasmlanche-sdk/src/state.rs
Original file line number Diff line number Diff line change
@@ -111,7 +111,7 @@ where
return Err(Error::Read);
}
richardpringle marked this conversation as resolved.
Show resolved Hide resolved

// Wrap in OK for now, change from_raw_ptr to return Result
// TODO Wrap in OK for now, change from_raw_ptr to return Result
let bytes = from_host_ptr(val_ptr)?;
self.cache.entry(key).or_insert(bytes)
};