diff options
author | Vika <vika@fireburn.ru> | 2023-07-09 01:28:00 +0300 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2023-07-09 01:28:00 +0300 |
commit | 2156ed8d0ab62e677037b104c08489e5eed55733 (patch) | |
tree | 2fc3961421a9573877c2f91129f9c52b9f7e9fd0 /kittybox-rs/src/media | |
parent | dd10254f36409df57d7cd9ab30e7af139121a428 (diff) | |
download | kittybox-2156ed8d0ab62e677037b104c08489e5eed55733.tar.zst |
database/memory: cleaner update_post implementation
This one manages to avoid extraneous allocations as much as possible, by deconstructing the update into pieces and using a mutable reference taken directly from the hashmap in which the posts are stored. Now if only this hashmap were to be serialized on Drop, we could even have persistence in the database and therefore gain another backend that requires no dependencies to run, just like FileStorage, but avoids extraneous file access (or maybe shunts it into the background?)
Diffstat (limited to 'kittybox-rs/src/media')
0 files changed, 0 insertions, 0 deletions