You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This leak is caused by _deflate_stream and _deflate_step being defined corecursively where _deflate_stream calls _deflate_step out of tail position (it adds an extra flatMap on the result). I haven't tried fixing yet so if someone beats me to it, that's great. :)
There is a memory leak in fs2 when using
fs2.compress.deflate
with a large Stream. Similar to #987, it results in a long chain ofFreeC
instances.The code to reproduce is:
Be sure to run this against the latest version of fs2 containing PR #992. With the source being a very large file, the heap dump shows:
![image](https://user-images.githubusercontent.com/395523/33245508-083f710a-d35d-11e7-8759-c779a0945a3e.png)
This is probably the root cause of a memory leak in the http4s GZip implementation. http4s/http4s#1561
The text was updated successfully, but these errors were encountered: