HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
pretzelhammer
using-rust-in-non-rust-servers
Rust2024–2024
pretzelhammer / using-rust-in-non-rust-servers

using-rust-in-non-rust-servers

Discover this repository through its Hacker News conversations.

2Distinct people
3Mentions
0Explicit recommenders
17GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

A public description has not been verified.

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 3:56:07 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by hour3 dated mentions

Observed mentions: 2024-10-28 16:59:17 UTC to 2024-10-28 22:01:22 UTC.

012024-10-28 16:00:00 UTC to 2024-10-28 17:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsOct 28, 16:002024-10-28 17:00:00 UTC to 2024-10-28 18:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-10-28 18:00:00 UTC to 2024-10-28 19:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-10-28 19:00:00 UTC to 2024-10-28 20:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 commentsOct 28, 19:002024-10-28 20:00:00 UTC to 2024-10-28 21:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-10-28 21:00:00 UTC to 2024-10-28 22:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2024-10-28 22:00:00 UTC to 2024-10-28 23:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsOct 28, 22:00

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
Oct 28, 16:002024-10-28 16:00:00 UTC2024-10-28 17:00:00 UTC101
Oct 28, 17:002024-10-28 17:00:00 UTC2024-10-28 18:00:00 UTC000
Oct 28, 18:002024-10-28 18:00:00 UTC2024-10-28 19:00:00 UTC000
Oct 28, 19:002024-10-28 19:00:00 UTC2024-10-28 20:00:00 UTC000
Oct 28, 20:002024-10-28 20:00:00 UTC2024-10-28 21:00:00 UTC000
Oct 28, 21:002024-10-28 21:00:00 UTC2024-10-28 22:00:00 UTC101
Oct 28, 22:002024-10-28 22:00:00 UTC2024-10-28 23:00:00 UTC101

What Hacker News says

3 sources
Here's the list of my benchmark targets: https://github.com/pretzelhammer/using-rust-in-non-rust-serv... Vegeta, the tool I used for benchmarking, iterates through all those targets round-robin style while attacking the server and then averages the results when reporting the average response size in bytes (and it only measures the size of the response body, it doesn't include other things like headers). Even using the same library and same compression algorithm not all 200px by 200px QR code PNGs will compress to the same size. How well they can be compressed depends a lot on the encoded piece of text as that determines the visual complexity of the generated QR code.
In Using Rust in non-Rust servers to improve performance
I believe the difference is that the JS version specifies compression strategy 3 (Z_RLE)[0][1], whereas the Rust crate is using the default compression strategy[2]. Both otherwise use the same underlying compression library (deflate aka zlib) and the same compression level (9). [0]: https://github.com/pretzelhammer/using-rust-in-non-rust-serv... [1]: https://zlib.net/manual.html#Advanced:~:text=The%20strategy%... [2]: https://github.com/rust-lang/flate2-rs/blob/1a28821dc116dac1... Edit: Nevermind. If you look at the actual generated files, they're 594 and 577 bytes respectively. This is mostly HTTP headers. [3]: https://github.com/pretzelhammer/rust-blog/blob/master/asset... [4]: https://github.com/pretzelhammer/rust-blog/blob/master/asset...
In Using Rust in non-Rust servers to improve performance

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.