Add an example of compressing on a CPU pool

This commit is contained in:
Alex Crichton
2017-09-11 14:41:15 -07:00
parent ecedea3404
commit 8a43472b35
3 changed files with 128 additions and 0 deletions
+3
View File
@@ -41,6 +41,9 @@ A high level description of each example is:
objects.
* `udp-codec` - an example of using the `UdpCodec` trait along with a small
ping-pong protocol happening locally.
* `compress` - an echo-like server where instead of echoing back everything read
it echos back a gzip-compressed version of everything read! All compression
occurs on a CPU pool to offload work from the event loop.
If you've got an example you'd like to see here, please feel free to open an
issue. Otherwise if you've got an example you'd like to add, please feel free