# Maximum size of LUA code?

**URL:** https://forum.electra.one/t/maximum-size-of-lua-code/2212
**Category:** Developers
**Created:** [June 25, 2023, 5:41pm UTC](https://forum.electra.one/t/maximum-size-of-lua-code/2212 "2023-06-25T17:41:03Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![adamc](https://avatars.discourse-cdn.com/v4/letter/a/13edae/32.png) [@adamc](https://forum.electra.one/u/adamc)
#### Post date: [June 25, 2023, 7:26pm UTC](https://forum.electra.one/t/maximum-size-of-lua-code/2212/2 "2023-06-25T19:26:20Z")

</div>

I do recall a post talking about the RAM in the MKII thread:

> [@Electra One mkII](https://forum.electra.one/t/electra-one-mkii/1824/6):
>
> There is 64MB on board. 32MB directly accessible with Lua (currently around 150kB) and other 32MB for storing graphical assets, lists, etc.

And some other context in there.

> [@oldgearguy](#):
>
> I have a preset that has about 2300 lines of LUA. I anticipate it topping out around 3000 or so lines.

Precompiled lines in any language isn’t a good indicator of program size/memory consumption as you can make a few lines take up tons of memory or have thousands of bit twiddling lines that uses barely any because it’s efficiently packing stuff in memory.

---

_[View the full topic](https://forum.electra.one/t/maximum-size-of-lua-code/2212)._
