Ivorforce / NumDot

Tensor math and scientific computation for the Godot game engine.
https://numdot.readthedocs.io
MIT License
17 stars 7 forks source link

Add individual function optimization #77

Open Ivorforce opened 1 month ago

Ivorforce commented 1 month ago

Possibly builds on top of #76.

It would be nice if functions could be enabled in 3 stages:

Currently, optimizing all functions seriously will blow up the binary to over 100mb. But if only 1-5 functions would be optimized, this would result in much more manageable sizes.

This feature is currently not high priority, unless someone needs it.

Ivorforce commented 1 month ago

One way to implement this would probably to have feature flags (like #76) that pertain to whether a function is specifically optimized. It will then use the corresponding functions to make templates expand to either a normal function version or an optimized one.