dullbananas
dullbananas
`RateLimitStorage` grows whenever a new IP address makes a request, so it's extremely important to make it use as little memory as possible. The biggest problem is that old buckets...
This causes the server's responses to be compressed when the client sets the required Accept-Encoding header. This is automatically done by the JavaScript fetch function, so the frontend code doesn't...
This gets rid of repetitive calls to `get_conn` in `db_schema::impls`. More importantly, it allows the functions to be used in transactions because the actions in a transaction can't use different...
This prevents spikes in traffic from causing permanently increased memory usage.
For example, it happened 3 times in a row here: https://github.com/LemmyNet/lemmy/pull/3536
The non-async sender prevents an HTTP worker (1 per CPU core) from doing anything else until the email is sent.
I ran `cargo-llvm-lines`, and over 1% of the LLVM code comes from calls to `spawn_try_task`. Generic functions cause separate LLVM code generation for each unique combination of generic arguments (each...