diff --git a/backend/handler.py b/backend/handler.py
index <HASH>..<HASH> 100644
--- a/backend/handler.py
+++ b/backend/handler.py
@@ -171,7 +171,7 @@ class TensorboardHandler(BaseHTTPServer.BaseHTTPRequestHandler):
       code: The numeric HTTP status code to use.
     """
     out = BytesIO()
-    f = gzip.GzipFile(fileobj=out, mode='wb')
+    f = gzip.GzipFile(fileobj=out, mode='wb', compresslevel=3)
     f.write(compat.as_bytes(content))
     f.close()
     gzip_content = out.getvalue()
Make GZip faster for TensorBoard

It turns out compresslevel=3 is 4x faster and nearly as good. Less time
spent compressing is going to be important, because this HTTP server is
multithreaded and CPU bound operations scale negatively, i.e. 1 + 1 < 1.

Benchmark: <URL>