News for hackers. Stuff that matters.
Re:How much memory do you need in 2024 to run 1M concurrent ... by davidatbu on Saturday November 30, 2024 @10:17AM (#42282047)
In `wrapped_sleep` function body, where does the `sleep()` come from? It's still tokio::time::sleep, right? If so, the start time is recorded before the first `.await`.

Regardless, the program you provided _does_ actually run the futures concurrently, because of the `join_all()`. My point above was that in the original blog post, the appendix has a version without `join_all()`, which has no concurrency.

Re:How much memory do you need in 2024 to run 1M concurrent ... by vbsd on Saturday November 30, 2024 @01:15PM (#42283074)
Ah, I missed that you were talking about the code in the appendix, not the top examples. Yeah, you’re right on every count then, aplologies.