about summary refs log tree commit diff
path: root/kittybox-rs/migrations/webmention
diff options
context:
space:
mode:
authorVika <vika@fireburn.ru>2023-07-09 01:28:00 +0300
committerVika <vika@fireburn.ru>2023-07-09 01:28:00 +0300
commit2156ed8d0ab62e677037b104c08489e5eed55733 (patch)
tree2fc3961421a9573877c2f91129f9c52b9f7e9fd0 /kittybox-rs/migrations/webmention
parentdd10254f36409df57d7cd9ab30e7af139121a428 (diff)
downloadkittybox-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/migrations/webmention')
0 files changed, 0 insertions, 0 deletions