Closed thomastaylor312 closed 1 year ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this has been closed too eagerly, please feel free to tag a maintainer so we can keep working on the issue. Thank you for contributing to wasmCloud!
This is a Rust only request
Right now the
put_object
andput_chunk
functions use theChunk
object. This object requires the bytes to be an ownedVec<u8>
. Because the data on incoming requests (like from anHttpRequest
fromwasmcloud:httpserver
) isn't owned, this means that the data has to be cloned to send to the blobstore. So if someone sends a 20 MB file (just as an example), we then have to allocate another 20MB of memory in order to send things.There are two possible solutions (both of which should be implemented IMO)
Chunk
. This should probably be done either wayto
NOTE: This could be more of a https://github.com/wasmCloud/weld issue in the end as it deals with generated interface code, but I thought it would be good to start here