Comments (8)
pinging @trevnorris since he likely knows the answer.
from help.
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.
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.
I'm not really sure. you could compile w/o openssl if you don't need crypto.
from help.
@cuttlfish what operating system and platform?
from help.
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.
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.
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)
- How to verify the signed message against the signature with raw ec public key only HOT 1
- stream.pipeline adds many close listeners, which can easily lead to MaxListenersExceededWarning HOT 2
- Failed to cross-complie fully-static nodejs with arm-linux-gnueabihf complier HOT 4
- High load on node library when CPU profiling HOT 4
- http2.request is downloading data with a very slow speed, if the network latency is significant HOT 2
- ip package not updated in expected nodejs/npm versions HOT 1
- npm run dev command is not working HOT 3
- Unable to install node image due to gpg check failed HOT 3
- Embedding integration questions (thread, stdout, cwd) HOT 4
- Cannot test locally committed code to Node.js in my PC. HOT 8
- "-sh: ./node: not found" on ARM platform HOT 1
- How to Enable Fast API Calls in Embedded Development HOT 1
- TENTANDO INSTALAR O YARN HOT 1
- Using official guide - Failed to install using 'fnm' CLI command on Win11 using PowerShell 7.4.4 HOT 3
- Asserting a range with descriptive error messages HOT 15
- [node:test] help using node api for node:test's run method with coverage report HOT 1
- Node-red is using the wrong version of nodejs and failing to start HOT 1
- WebSocket Data Transfer Slows Down After Node.js 16.14.2 Release HOT 21
- "# Fatal error in , line 0" when trying to run Node app from Rsyslog HOT 27
- tlsSocket.servername is false (sometimes) HOT 6
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 help.