CircuitPython memory improvements in 3.x @adafruit #adafruit – YouTube

Spread the love

CircuitPython memory improvements in 3.x @adafruit #adafruit

In CircuitPython 3.x we’ve changed the way objects are saved in memory. We now separate them into two different sides of the heap so that long lived objects are stored next to one another. This reduces fragmentation which allows for larger objects to be allocated later in your code. This fragmentation is visible at the end of every sweep, when old objects are swept away and the memory is considered free again.

Join Discord to discuss CircuitPython and optimizations like this:

Check out the GitHub pull request for more details on this improvement:

Thanks to Cedar Grove Studios for the music.

Shop for CircuitPython supported hardware here:
Adafruit on Instagram:


Subscribe to Adafruit on YouTube:

Join our weekly Show & Tell on G+ Hangouts On Air:

New tutorials on the Adafruit Learning System:


Just a figment of your imagination.