# Slow gzip streaming in julia but not in python

**URL:** <https://discourse.julialang.org/t/slow-gzip-streaming-in-julia-but-not-in-python/56346>\
**Category:** General Usage\
**Tags:** performance\
**Created:** [March 2, 2021, 4:08pm UTC](https://discourse.julialang.org/t/slow-gzip-streaming-in-julia-but-not-in-python/56346 "2021-03-02T16:08:44Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![ToucheSir](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/touchesir/32/14411_2.png) [@ToucheSir](https://discourse.julialang.org/u/ToucheSir)\
**Post date:** [March 3, 2021, 12:15am UTC](https://discourse.julialang.org/t/slow-gzip-streaming-in-julia-but-not-in-python/56346/12 "2021-03-03T00:15:53Z")

</div>

There was a [related thread](https://discourse.julialang.org/t/bad-performance-of-eachline-on-stdin/55701) recently where it was mentioned that reading stdin via a pipe can be quite slow in Julia. `CodecZlib` definitely seems like the more idiomatic option (just like you’d use `gzip.open` in Python), so hopefully someone can comment on why the performance of your code snippet isn’t amazing (lack of buffering, maybe)?

---

_[View the full topic](https://discourse.julialang.org/t/slow-gzip-streaming-in-julia-but-not-in-python/56346)._
