replace rkyv with custom serde
#1207
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Follow up on #1171
replace
rkyvwith custom serde for 2 reasonsrkyvfriendly struct, or leverage external library, e.g. "rkyv + bincode".rkyvfriendly struct is not friendly for existing application in particular struct are defined in 3rd-party library. Thus previously we integrate bincode for the serialiation to bytes. This bring extra effort for guest program as we need bincode to deserialize back to owned struct.rkyvwill access high addr to retrieve some meta information before sequential read. Below are example read patternThe high order access not friendly if we want to record max accessed address in each shard for memory region initialized across shard.
New
ceno_serdecrates credits to https://github.com/openvm-org/openvm/tree/main/crates/toolchain/openvm/src/serdebenchmark
Run on 23817600 with K=6, cache trace = none, 1x4090
Overall cycle
322620252->315955342(2.06%)