Skip to content

Instantly share code, notes, and snippets.

@cybear
Last active January 27, 2023 22:17
Show Gist options
  • Save cybear/4751158 to your computer and use it in GitHub Desktop.
Save cybear/4751158 to your computer and use it in GitHub Desktop.
I read up a little on performance optimization for the Raspberry Pi, and gathered the links before they disappear from my short term memory.

Raspberry Pi general optimization

Web tools specifics

  • Recent versions of NodeJS have been optimized to utilize hardfloat (hardware float operations). Don't use apt-get, instead use nvm to get a more recent version of NodeJS.
  • If you use libraries or frameworks like Express, turn off logging. SD I/O is slow.
  • HW acceleration for CSS3 and HTML5 could be possible with Simon's accelerated X driver. Iceweasel (Debian's version of Firefox) will probably be better supported than Chromium (the non-Google distribution of Chrome) in the start, since its instructions are easier to optimize according to Simon / teh_orph. Midori which is already installed is based on WebKit and more lightweight than Chromium.

However, all web browsers using X will probably never be impressively fast, since X is very hard to accelerate (The problem with X performance is mentioned in this thread http://www.raspberrypi.org/phpBB3/viewtopic.php?f=63&t=4649)

@nick-jonas
Copy link

This is fantastic, exact information I was looking for to start squeezing performance out. Trying to see if even the most basic CSS3 hardware accelerated animations can run smoothly. Is this fairly up to date?

@download13
Copy link

@nick-jonas Were you are to get anything smooth out of this?

@jschee
Copy link

jschee commented Dec 26, 2019

Just a heads up to anyone who's had random crashes while running specific processes, especially when using a Pi with considerably low ram(e.g. pi 3, 1gb RAM version). Look into swap memory usage. Our chrome kiosk pi had a bad habit of failing every 6-8 hours...turns out we just had to designate it a bit more memory to keep chrome from crashing.

@nodecentral
Copy link

Hi, Is this information still considered up to date ?

@bjszd
Copy link

bjszd commented Apr 2, 2021

Sorry, they're old.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment