### Checks <!-- Replace the whitespace between the square brackets with an 'x', e.g. [x] or After you create the PR, they will become checkboxes that you can click on. --> - [x] This is not a duplicate of an existing issue (please have a look through our [open issues list](https://github.com/nativeflowteam/nativeflowcss/issues) to make sure) - [x] I have thoroughly read and understand [Contributing Guide](https://github.com/nativeflowteam/nativeflowcss/blob/main/CONTRIBUTING.md) - [x] Would you like to work on this enhancement? ### Describe the enhancement <!-- Give a short description of the enhancement or feature you are suggesting, max 1-2 lines, like a brief summary --> - reduce compiled bundle size and runtime optimizations - a workflow to check bundle size and other stats for every PR ### Describe the solution you'd like <!-- A clear and concise description of what you want to happen --> - run the `.forEach` function in each prop only once instead of being spread apart (reduces init/re-init of CPU cycles) - implement a tiny LRU cache to maintain repeated dynamic functions, thus reducing re-allocation compile times - merge reusable functions for colors and spacing ```mermaid flowchart LR subgraph load [Module load] A[spacingScale loops] B[colorList loops] C[Static literals in flex / sizing] end subgraph render [Typical render] D[Read p.p_4 / m.m_2] E[Call p.p_custom] end load --> D load --> E E --> F[New object alloc] ``` - flex, height, width and size props should also use spaceScaling - minify the library using tsup ### Describe alternatives you've considered <!-- A clear and concise description of any alternative solutions or features you've considered --> ### (Optional) Additional Comments _No response_ ### (Optional) Discord username <!-- server link --> _No response_
Checks
Describe the enhancement
Describe the solution you'd like
.forEachfunction in each prop only once instead of being spread apart (reduces init/re-init of CPU cycles)flowchart LR subgraph load [Module load] A[spacingScale loops] B[colorList loops] C[Static literals in flex / sizing] end subgraph render [Typical render] D[Read p.p_4 / m.m_2] E[Call p.p_custom] end load --> D load --> E E --> F[New object alloc]Describe alternatives you've considered
(Optional) Additional Comments
No response
(Optional) Discord username
No response