Ph0enixKM / Amber

💎 Amber the programming language compiled to bash
https://amber-lang.com
GNU General Public License v3.0
3.54k stars 70 forks source link

Optimize compiled code size #97

Closed b1ek closed 1 month ago

b1ek commented 1 month ago

i have removed a few things to reduce the code size:

those are pretty harmless optimizations, and all the cargo tests pass. i made sure that all hardcoded variables are renamed in the code. you can verify it via grep -n __VARIABLE_NAME $(git ls-files | grep -E \\.rs\$).

Ph0enixKM commented 1 month ago

@b1ek That's great! I wanted to fix these pointless code checks some time ago but didn't have time to do so 🎉