[x/programs] Change the state's put
and delete
methods to handle batches on the host
#868
Labels
put
and delete
methods to handle batches on the host
#868
Where we can, we should avoid going in and out of the wasm-context. There should always be the option to batch calls.
Further, I think a single method for updates and deletes would be beneficial. Ideally, we could use something like
I also think we would further benefit from
where we could defer the actual serialization. It might be trickier to downcast the
Box<dyn BorshSerialize>
to aBox<T>
when fetching from the cache though...The text was updated successfully, but these errors were encountered: