Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link

@nick-jonas nick-jonas commented Oct 22, 2014

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

This comment has been minimized.

Copy link

@download13 download13 commented Jun 24, 2015

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

@jschee

This comment has been minimized.

Copy link

@jschee 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.