Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add individual function optimization #77

Closed
Ivorforce opened this issue Sep 21, 2024 · 2 comments
Closed

Add individual function optimization #77

Ivorforce opened this issue Sep 21, 2024 · 2 comments
Labels
optimization Something that optimizes size, speed, or maintainability.

Comments

@Ivorforce
Copy link
Owner

Possibly builds on top of #76.

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

  • Disabled
  • Enabled (saving space)
  • Enabled (optimized, sacrificing space)

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 Ivorforce added the feature New feature or request label Sep 21, 2024
@Ivorforce
Copy link
Owner Author

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.

@Ivorforce Ivorforce added optimization Something that optimizes size, speed, or maintainability. and removed feature New feature or request labels Oct 13, 2024
@Ivorforce
Copy link
Owner Author

I don't think this is needed now. in-place correct type math is perfectly optimized now, and if somebody needs something even faster, they'd do better forking NumDot to add their own functions. For them, #142 will be a better solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
optimization Something that optimizes size, speed, or maintainability.
Projects
None yet
Development

No branches or pull requests

1 participant