Skip to content

Commit

Permalink
libcore|Socket: Always prefer speed when compressing payloads
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Oct 17, 2017
1 parent 3ba4356 commit 1ab7626
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doomsday/sdk/libcore/src/net/socket.cpp
Expand Up @@ -254,7 +254,7 @@ DENG2_PIMPL_NOREF(Socket)

if (!header.size) // Try deflate.
{
int const level = (payload.size() < MAX_SIZE_BIG? 1 /*fast*/ : 9 /*best*/);
int const level = 1; //(payload.size() < MAX_SIZE_BIG? 1 /*fast*/ : 9 /*best*/);
Block const deflated = payload.compressed(level);

if (!deflated.size())
Expand Down

0 comments on commit 1ab7626

Please sign in to comment.