Aeolos
Joined 11 years ago
Joined 11 years ago
It's about as good as it can get for this kind of code.
[1] https://www.reddit.com/r/rust/comments/1ixt1ei/zlibrs_is_fas...
Every single time.
It's a tired argument, and we should strive for the intellectual humility to do better in this forum.
Cargo, please PLEASE give me a way to disable third-party build.rs and whitelist the ones I need. And please loudly mark any update that adds a build.rs where there was none before.
`cargo add` is sufficient to compromise you, before you have a chance to even vet the code.
I don't have direct HTTP/1 vs HTTP/3 comparisons, because 0% of our requests are over HTTP/1 today...
The secondary problem is SPAs approximately double the amount of code you need to write compared to a server-side approach for the same level of interactivity.
Once you have sufficient context in your html, this is no longer necessary.
Our webapp is achieving 800:1 to 5000:1 compression ratios pushing down the entire HTML page over brotli and zstd. The first render is about 20:1 compression, every interaction after that is 800-5000:1.
We are using datastar with the recommended "fat morph" approach where we re-render the entire HTML page from scratch on every request. Our typical RTT is <100ms including rendering, then the brotli / zstd compression window cuts down the wire size to literally _bytes_.
This is SO much more efficient than our previous reactjs & graphql render waterfalls with state duplication in the client side. All states lives on the server, all renders are authoritative, and we need to maintain roughly half the code size for better first-render and massively better interactive performance. Appserver and DB pressure is massively reduced too.
(This is a medical device with a highly interactive UI, image viewers, editors, not a boring old static website.)
IE6 was 97%, how did that work out?
Edit: the dog will also be taken from you and put down if it is deemed a risk to other people.