GithubHelp home page GithubHelp logo

Comments (2)

RedSparr0w avatar RedSparr0w commented on June 12, 2024 1

@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.

creeperyang avatar creeperyang commented on June 12, 2024

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)

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.