-
Notifications
You must be signed in to change notification settings - Fork 59
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
Reusing compiled/evaluated code #32
Comments
Hi, yes in the Zeno branch there are some JS code generation facilities. I'll have to refine and document them, but if you look for "generation" you'll find the trail. |
My best bet is |
my vote goes for using/improving that code generation facility. It's a draft, true, but I'm going to keep working on it, so I'd find any improvements on that very useful, they will be included and maintained... |
After updating to 1.0, the code generation works well for my use case. Algebrite.findDependenciesInScript("expression")[1] successfully returns a JS expression that can be evaluated. The name of the function is not the greatest, but I'm not gonna complain. Thanks for maintaining and updating this library, it has helped me a great deal. |
I'm trying to generate an isosurface, and right now I'm running the same expression, with replaced variables 15000+ times. Is there any way to optimize this call:
Algebrite.eval(eq, "a", a, "b", b)
Thanks for all your work.
The text was updated successfully, but these errors were encountered: