Comments (2)
@azariah001 Thanks, your fix seemed to work for me. memory was freed up in about 10 seconds after reading the files.
example below (reading 111 files 950Mb)
note: i am using this within electron
before reading files: ~100Mb
after reading files: ~1000Mb
after reading files + ~10 seconds: ~100Mb
id3.parse(new Uint8Array(fs.readFileSync(file.path))).then(tags => {
console.info(tags);
});
-VS-
before reading files: ~100Mb
after reading files: ~950Mb
after reading files + ~10 minutes: ~950Mb
id3.parse(fs.readFileSync(file.path)).then(tags => {
console.info(tags);
});
from id3-parser.
Not clear about your issue. I tested memory leak with memwatch
and found no leak.
stats: {"num_full_gc":1,"num_inc_gc":3,"heap_compactions":1,"usage_trend":0,"estimated_base":8547360,"current_base":8547360,"min":0,"max":0}
mem: { rss: 157667328, heapTotal: 138165760, heapUsed: 115051040 }
stats: {"num_full_gc":2,"num_inc_gc":8,"heap_compactions":2,"usage_trend":0,"estimated_base":40045416,"current_base":40045416,"min":0,"max":0}
mem: { rss: 157954048, heapTotal: 138165760, heapUsed: 115452648 }
So any more description? It's nice if you show your test code.
from id3-parser.
Related Issues (17)
- calcFrameSize returning NaN HOT 3
- Handling of null-terminated strings HOT 5
- Support chapter frames? HOT 1
- Tag doesn't parse. HOT 3
- File with no id3 tags returning input instead of emitting error HOT 4
- id3-parser v2
- A possible bug about APIC frame HOT 1
- Readme provides no example for usage on local files
- {'user-defined-text-information': '哾愀最最椀渀最 琀椀洀攀',} looks incorrectly parsed. HOT 1
- Need Support for AngularJS/Javascript Plain HOT 1
- Thanks for this library HOT 2
- It's entirely written in TypeScript HOT 2
- TXXX type metadata added to ID3.4 by ffmpeg cannot be parsed
- 可以增加对flac的解析吗
- what would be involved in implementing unsync support?
- Type Definition File HOT 1
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 id3-parser.