Coder Social home page Coder Social logo

Memory leak about ruby-xz HOT 3 CLOSED

quintus avatar quintus commented on June 24, 2024
Memory leak

from ruby-xz.

Comments (3)

Quintus avatar Quintus commented on June 24, 2024

from ruby-xz.

xTRiM avatar xTRiM commented on June 24, 2024

@Quintus, I've updated the gist to use streaming ops, there's clearly a leak in both compression and decompression.
https://gist.github.com/xTRiM/afdd9ea25519a479672153637637f0f7

Here's the output:

[Compress run with 10000 iterations]
Before - Process Memory: 179.988 mb
Before - Objects count: 581026
Before - Symbols count: 11449
After - Process Memory: 269.4609375 mb, changed by 89.473 mb
After - Objects count: 580998, changed by 25
After - Symbols count: 11449, changed by 0

[Decompress run with 10000 iterations]
Before - Process Memory: 269.559 mb
Before - Objects count: 580999
Before - Symbols count: 11449
After - Process Memory: 350.0859375 mb, changed by 80.527 mb
After - Objects count: 581001, changed by -5
After - Symbols count: 11449, changed by 0

[Compress/decompress run with 10000 iterations]
Before - Process Memory: 350.105 mb
Before - Objects count: 580997
Before - Symbols count: 11449
After - Process Memory: 511.17578125 mb, changed by 161.071 mb
After - Objects count: 580998, changed by -4
After - Symbols count: 11449, changed by 0

from ruby-xz.

Quintus avatar Quintus commented on June 24, 2024

I have decided to abaondon this project due to lack of time to maintain it, and I don’t use it anymore. Hence, I close this issue now. Please fork if you want to continue maintaining it.

from ruby-xz.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.