Comments (3)
from ruby-xz.
@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.
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)
- Remove dependency on io-like HOT 4
- Add methods for determining the approx. (de)compressed size HOT 1
- Sync API with Ruby’s Zlib::GzipFile HOT 2
- ruby-xz breaks Resolv.getaddress in ruby 2.2.x HOT 8
- Invalid archive checksum should raise exception HOT 1
- can't require 'xz' on OS X without adding a symlink
- how to generate a lzma-js compatible string to decode in browser? HOT 1
- Stream (`IO`-like) mode would be great HOT 15
- StreamWriter crashes when writing more than a couple of bytes HOT 2
- Add 'io-like' dependency to gemspec. HOT 2
- remove initialize in lib_lzma.rb HOT 1
- Question: what constitutes big amounts of data? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ruby-xz.