# Node-Red editor running very quick on Windows - Very slow on Raspberry Pi - Why?

**URL:** https://discourse.nodered.org/t/node-red-editor-running-very-quick-on-windows-very-slow-on-raspberry-pi-why/79365
**Category:** General
**Created:** [23 June 2023 11:16 UTC](https://discourse.nodered.org/t/node-red-editor-running-very-quick-on-windows-very-slow-on-raspberry-pi-why/79365 "2023-06-23T11:16:44Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![dr\_cave\_dweller](https://avatars.discourse-cdn.com/v4/letter/d/71e660/32.png) [@dr\_cave\_dweller](https://discourse.nodered.org/u/dr_cave_dweller)
#### Post date: [23 June 2023 11:16 UTC](https://discourse.nodered.org/t/node-red-editor-running-very-quick-on-windows-very-slow-on-raspberry-pi-why/79365/1 "2023-06-23T11:16:44Z")

</div>

The exact same json file runs very quick on my Windows PC, but very slow on the Raspberry Pi. The flow is quite large spread over many tabs, and I am using Dashboard as well.

When I say quick, I mean when I am in the editor I click on a tab it will instantly change on Windows, but might take 5-10 seconds to open on the PI. Copy and paste of nodes very slow, opening a node to edit is slow, everything is slooooow.

Its a 4Gb CM4. Running "free -m" shows I have 3838 total Mem, 762 used, 2477 free, 95 shared, 598 buff, 2872 available so seems to have plenty of memory available.

Any ideas? Thanks

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [23 June 2023 11:18 UTC](https://discourse.nodered.org/t/node-red-editor-running-very-quick-on-windows-very-slow-on-raspberry-pi-why/79365/2 "2023-06-23T11:18:49Z")

</div>

> [@dr\_cave\_dweller](#):
>
> Any ideas

Yes, even a rubbish windows pc is **multiple** times faster than RPI

Also, are you running the browser on the PI or the desktop? (Hint, just because node-red runs on a PI doesn't mean you have to access the node-red editor on the PI)

Also, are you doing node, flow or full deploy?

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [23 June 2023 11:21 UTC](https://discourse.nodered.org/t/node-red-editor-running-very-quick-on-windows-very-slow-on-raspberry-pi-why/79365/3 "2023-06-23T11:21:02Z")

</div>

[Further reading](https://www.wired.co.uk/article/raspberry-pi-4-review-price-release#:~:text=Beyond%20the%20world%20of%20single,as%20the%20whole%20Pi%204)

> Beyond the world of single-board computers, the Pi 4's performance in that test is about as fast as a decent 2007-era Intel Core 2 processor. It's six times slower than our reference AMD Ryzen 5 1600 based desktop PC. But then again, that AMD CPU alone costs three times as much as the whole Pi 4.

---

<div class="post-metadata">

### Author: ![dr\_cave\_dweller](https://avatars.discourse-cdn.com/v4/letter/d/71e660/32.png) [@dr\_cave\_dweller](https://discourse.nodered.org/u/dr_cave_dweller)
#### Post date: [23 June 2023 11:43 UTC](https://discourse.nodered.org/t/node-red-editor-running-very-quick-on-windows-very-slow-on-raspberry-pi-why/79365/4 "2023-06-23T11:43:28Z")

</div>

Full deploy - I dont mind that being slower.

Interesting comment on the processor. I would not have though that just clicking on a node to open it, trying to move it or moving between tabs would be so CPU intensive. Sometimes I literally can't get it to open a node by double clicking it, I need to highlight it then press enter to open it.

The browser is on the Pi. I edit the nodes on the Pi mostly, the deploy is on the Pi.

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [23 June 2023 11:47 UTC](https://discourse.nodered.org/t/node-red-editor-running-very-quick-on-windows-very-slow-on-raspberry-pi-why/79365/5 "2023-06-23T11:47:34Z")

</div>

A browser is a beast of a program. The PI is relatively decent for computational (runtime) stuff but it is the GUI and BROWSER running on the same machine - coupled with full deploy that is your enemy here.

In short, I don't even run a GUI on my PI - only SSH access. The browser to access the PIs node-red is on another device.

---

<div class="post-metadata">

### Author: ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)
#### Post date: [23 June 2023 11:47 UTC](https://discourse.nodered.org/t/node-red-editor-running-very-quick-on-windows-very-slow-on-raspberry-pi-why/79365/6 "2023-06-23T11:47:57Z")

</div>

> [@dr\_cave\_dweller](#):
>
> The browser is on the Pi. I edit the nodes on the Pi mostly, the deploy is on the Pi.

If there is one thing my WIndows laptop can do better than a Raspberry Pi, It's run a browser. (there may be others)  
Contrariwise, Node-red on windows seems difficult and awkward compared to the Pi.

So I run Node-red on the Pi and access it from Firefox on Windows

---

<div class="post-metadata">

### Author: ![dr\_cave\_dweller](https://avatars.discourse-cdn.com/v4/letter/d/71e660/32.png) [@dr\_cave\_dweller](https://discourse.nodered.org/u/dr_cave_dweller)
#### Post date: [23 June 2023 11:54 UTC](https://discourse.nodered.org/t/node-red-editor-running-very-quick-on-windows-very-slow-on-raspberry-pi-why/79365/7 "2023-06-23T11:54:29Z")

</div>

I need the GUI running on Chromium, I am running a dashboard with a touchscreen.

Why does pressing the full deploy make a difference - I dont understand this.

I have SSH turned off.

So sounds like I am out of luck?

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [23 June 2023 12:34 UTC](https://discourse.nodered.org/t/node-red-editor-running-very-quick-on-windows-very-slow-on-raspberry-pi-why/79365/8 "2023-06-23T12:34:50Z")

</div>

> [@dr\_cave\_dweller](#):
>
> Why does pressing the full deploy make a difference - I dont understand this

Lets say you have 500 nodes in all your flows/tabs. Then you add 1 more, edit 1 and remove 3 - you have made 5 changes.

- full deploy - destroys all 500 modes, closes any open connections (mqtt, TCP, modbus, etc), then rebuilds them completely and then deploys them to the runtime at which point they need to re-connect to any services or transports they use.
- flow deploy - finds and destroys all connected (by wire) nodes in the flows that were wired upstream or downstream to the modified nodes.
- node deploy - just destroys/closes/re-creates the 5 nodes you changed.

NOTE: Each time nodes are torn down & rebuilt, there is a slight chance of a resources or mem block being locked (leakage). The less nodes re-created, the less opportunities.

So 20 modifications of 5 nodes =

- Full Deploy: 10000 nodes destroyed, disconnected, rebuilt, redeployed
- Node Deploy: 100 nodes destroyed, disconnected, rebuilt, redeployed

The numbers get big quick

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [23 June 2023 14:04 UTC](https://discourse.nodered.org/t/node-red-editor-running-very-quick-on-windows-very-slow-on-raspberry-pi-why/79365/9 "2023-06-23T14:04:09Z")

</div>

In order to confirm whether it is the browser clogging up the pi, try running the browser on the pc, accessing node red on the pi.

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [23 June 2023 14:05 UTC](https://discourse.nodered.org/t/node-red-editor-running-very-quick-on-windows-very-slow-on-raspberry-pi-why/79365/10 "2023-06-23T14:05:27Z")

</div>

And closing / killing the browser on the PI while you do so.

---

<div class="post-metadata">

### Author: ![dr\_cave\_dweller](https://avatars.discourse-cdn.com/v4/letter/d/71e660/32.png) [@dr\_cave\_dweller](https://discourse.nodered.org/u/dr_cave_dweller)
#### Post date: [23 June 2023 18:55 UTC](https://discourse.nodered.org/t/node-red-editor-running-very-quick-on-windows-very-slow-on-raspberry-pi-why/79365/11 "2023-06-23T18:55:03Z")

</div>

Sorry, might be a bit slow, how do I use the browser on my PC to make changes to a Node-Red file on the Pi?

---

<div class="post-metadata">

### Author: ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)
#### Post date: [23 June 2023 19:09 UTC](https://discourse.nodered.org/t/node-red-editor-running-very-quick-on-windows-very-slow-on-raspberry-pi-why/79365/12 "2023-06-23T19:09:04Z")

</div>

You just need the IP address of the Node-red machine.  
Point your browser to the IP address and port 1880.

So on my network there is a Raspberry Pi running Node-red at 192.168.1.11. My browser points to 192.168.1.11:1880.  
The dashboard is at 192.168.1.11:1880/ui

---

<div class="post-metadata">

### Author: ![dr\_cave\_dweller](https://avatars.discourse-cdn.com/v4/letter/d/71e660/32.png) [@dr\_cave\_dweller](https://discourse.nodered.org/u/dr_cave_dweller)
#### Post date: [23 June 2023 19:55 UTC](https://discourse.nodered.org/t/node-red-editor-running-very-quick-on-windows-very-slow-on-raspberry-pi-why/79365/13 "2023-06-23T19:55:48Z")

</div>

Yes, okay, I have viewed the dashboard this way before, I can't believe I didn't think to access the editor this way. It is so fast now, my quality of life has increased 1000%. Thanks all!

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [7 July 2023 19:56 UTC](https://discourse.nodered.org/t/node-red-editor-running-very-quick-on-windows-very-slow-on-raspberry-pi-why/79365/14 "2023-07-07T19:56:33Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
