aksiksi / vaulty

A service that allows users to send email directly to a cloud storage service.
https://vaulty.net
4 stars 0 forks source link

Evaluate removing all async code from filter #53

Closed aksiksi closed 4 years ago

aksiksi commented 4 years ago

A Postfix filter is spawned on each accepted email and the total number of filters is limited.

First, we need to compare the startup/execution time for a simple email with 1 attachment (common case). If the startup cost of the async runtime is significant, we will remove it and keep it all sync; i.e., each attachment is sent to the server in sequence.

aksiksi commented 4 years ago

Looks like Tokio runtime init takes ~15 ms on a 4 core machine.