3 ms·
Just use warp. Warp is a lot faster to compile but is also less performant. If web isn't a core part, it's not worth the incremental speedup.
by Karrot_Kream 6y ago
Just use warp. Warp is a lot faster to compile but is also less performant. If web isn't a core part, it's not worth the incremental speedup.
- josephg 6y agoOk I'll take a look at Warp if I can't get my compile times down with the suggestions from others. I initially wrote my code using Tide, but I'm streaming data through long-lived HTTP responses (with a protocol similar to SSR). Tide made this extremely difficult to pull off. Actix (not actix-web) makes this much cleaner, because I can create an actor per web client. The actor owns the connection, and I can send messages to the actor to be translated into bytes and sent over the wire. Even if I use something other than actix-web, I might keep using actix for the actor based programming model (which is a good fit for my project). And if I'm doing that, actix-web seems like the obvious choice for the web component.