v6d-io / v6d

vineyard (v6d): an in-memory immutable data manager. (Project under CNCF, TAG-Storage)
https://v6d.io
Apache License 2.0
819 stars 117 forks source link

Create llm cache block builder only when the user requests an update. #1826

Open vegetableysm opened 4 months ago

vegetableysm commented 4 months ago

Describe your problem

Currently, we will fetch and get a block object if user request a cache block(update or query) and create a builder from this block object. Then delete the block object. There exist an extra memory copy process when create a new builder. We can keep the block object to server the query request from the user and create a new builder only when the user requests an update.

github-actions[bot] commented 3 months ago

/cc @vegetableysm, this issus/pr has had no activity for for a long time, could you folks help to review the status ? To suppress further notifications,

sighingnow commented 3 months ago

Has this issue been fixed or not?

vegetableysm commented 3 months ago

Has this issue been fixed or not? No. We pull block object only when we access the block, but we will rebuild the builder. We can change it to build the builder only for update and serve the query via block in the future.