-
Notifications
You must be signed in to change notification settings - Fork 146
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
What about remove Function creation? #81
Comments
Hmm, that's annoying. The only code that uses that is the resampler, which was imported from a 3rd party. It is definitely possible to rewrite that code so it is a normal function instead of a generated one. The point of doing it the way it is currently is for performance reasons since the generated function contains no loops and many values can be hardcoded rather than variables since everything is inlined when the function is generated. It would be interesting to see a performance comparison between that and a normal function version. If it's impossible to use generated functions like that, I guess you'd have to create a normal function version instead. If you do that, I'd be interested to see the results! |
Performance is a good reason, but comparing to inability to use library when re-sampling is needed, I'd prefer slower but working solution. |
Here is it.
If you are interesting in this - I can do that. Waiting for performance tests from you. |
I'm talking about code like this:
I'm using this awesome library in Firefox OS Application (Open Web Apps), and it doesn't support such things because of Content Security Policy (CSP).
It is possible to rewrite this code without such function declaration. I can do that, and send pull request, or if you have time - I can wait few days.
What do you think about this?
The text was updated successfully, but these errors were encountered: