-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
e.g.:
dream-encoding/lib/dream_encoding.ml
Lines 194 to 195 in dde4204
| let%lwt body = Dream.body response in | |
| Lwt.return @@ with_encoded_body ~algorithm body response |
This appears to read the entire body into memory, and then compress it. I assume (perhaps wrongly) that the underlying compression algorithms support streaming, and it seems like streaming would be more beneficial for precisely the kind of responses that you wouldn't want to load into memory an extra time (large ones).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels