]> Untitled Git - lemmy.git/commit
Reduce stack memory usage in apub code
authorFelix Ableitner <me@nutomic.com>
Sat, 6 Nov 2021 13:25:34 +0000 (14:25 +0100)
committerFelix Ableitner <me@nutomic.com>
Sat, 6 Nov 2021 13:53:39 +0000 (14:53 +0100)
commit8ea21c39b7d25bf39e9d333040674b55cf640b50
tree79db000702f049696e4ce079f551445bd3b0d99d
parentc725514841cda13d8743c7e30e7527b848e04d67
Reduce stack memory usage in apub code

- use our own, smaller Endpoints struct
- wrap ObjectId.url in Box
- adjust usage of Box in different places
20 files changed:
crates/api/src/post.rs
crates/api_crud/src/post/create.rs
crates/apub/src/activities/community/update.rs
crates/apub/src/activities/deletion/mod.rs
crates/apub/src/activities/post/create_or_update.rs
crates/apub/src/activities/voting/undo_vote.rs
crates/apub/src/activities/voting/vote.rs
crates/apub/src/activity_lists.rs
crates/apub/src/fetcher/post_or_comment.rs
crates/apub/src/http/community.rs
crates/apub/src/http/mod.rs
crates/apub/src/objects/community.rs
crates/apub/src/objects/person.rs
crates/apub/src/protocol/activities/community/update.rs
crates/apub/src/protocol/objects/group.rs
crates/apub/src/protocol/objects/mod.rs
crates/apub/src/protocol/objects/person.rs
crates/apub_lib/src/object_id.rs
crates/apub_lib/src/signatures.rs
crates/apub_lib/src/traits.rs