-
Notifications
You must be signed in to change notification settings - Fork 281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reduce code size of node #19
Comments
pinging @trevnorris since he likely knows the answer. |
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. |
Hi Trevor, Yes I mean the built binary. I tried changing the v8 gcc flag to -Os, that David On Fri, Oct 23, 2015 at 11:41 AM, Trevor Norris notifications@github.com
|
I'm not really sure. you could compile w/o openssl if you don't need crypto. |
@cuttlfish what operating system and platform? |
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 notifications@github.com
|
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, |
There is an 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. |
Hi,
Is there any way to reduce the code size of nodejs. On a cross compile platform it comes to be about 9 MB.
Also is there a way to reduce initial heap allocated by V8
Thanks
David
The text was updated successfully, but these errors were encountered: