Code Monkey home page Code Monkey logo

Comments (8)

mikeal avatar mikeal commented on September 16, 2024

pinging @trevnorris since he likely knows the answer.

from help.

trevnorris avatar trevnorris commented on September 16, 2024

By code size do you mean the built binary? As for v8, there are ways to constrain how much maximum memory it can use, but don't know of a way to limit memory consumption at startup.

from help.

cuttlfish avatar cuttlfish commented on September 16, 2024

Hi Trevor,

Yes I mean the built binary. I tried changing the v8 gcc flag to -Os, that
did succeed in making it smaller, but starts up slower I guess due to less
optimization

David

On Fri, Oct 23, 2015 at 11:41 AM, Trevor Norris [email protected]
wrote:

By code size do you mean the built binary? As for v8, there are ways to
constrain how much maximum memory it can use, but don't know of a way to
limit memory consumption at startup.


Reply to this email directly or view it on GitHub
#19 (comment).

from help.

trevnorris avatar trevnorris commented on September 16, 2024

I'm not really sure. you could compile w/o openssl if you don't need crypto.

from help.

srl295 avatar srl295 commented on September 16, 2024

@cuttlfish what operating system and platform?

from help.

cuttlfish avatar cuttlfish commented on September 16, 2024

This is linux running on a ARM platform that is similar to raspberry pi

On Wed, Dec 9, 2015 at 5:06 PM, Steven R. Loomis [email protected]
wrote:

@cuttlfish https://github.com/cuttlfish what operating system and
platform?


Reply to this email directly or view it on GitHub
#19 (comment).

from help.

amulpatel avatar amulpatel commented on September 16, 2024

I am also looking to reduce node memory size around 20 MB in openwrt. currently it is consuming around 50 MB.

is there any way to reduce memory consumption ? even i am ready to change code to reduce memory i.e v8, uv or other deps.

Thanks,
Amul Patel

from help.

bnoordhuis avatar bnoordhuis commented on September 16, 2024

There is an --optimize_for_size flag in newer versions of node and you can limit the size of the heap with --max_old_space_size=... (and --max_semi_space_size and --max_executable_size) in all versions.

You can also tweak common.gypi to build at -Os instead of -O3. The smaller binary, besides using less memory, also tends to run faster on systems with small L1 code caches.

from help.

Related Issues (20)

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.