No need for such extremes, it would already be enough to stop using Electron crap, or React on the terminal.
Followed by actually reading a data structures and algorithms book.
Finally, using compiled languages instead of interpreted ones.
No need to count bytes to fit into 48 KB.