Skip to content
This repository was archived by the owner on Sep 26, 2023. It is now read-only.

Conversation

@ckknight
Copy link

This should be functionality equivalent to before, and the unit tests remain green.
The resultant function should be much more friendly to the JITter, as it contains object accesses at the top, several pure math executions (which the JITter could theoretically parallelize), and an object create upon return.
A greater-than 10x speedup was observed with the new method.

This should be functionality equivalent to before, and the unit tests remain green.
The resultant function should be much more friendly to the JITter, as it contains object accesses at the top, several pure math executions (which the JITter could theoretically parallelize), and an object create upon return.
A greater-than 10x speedup was observed with the new method.
@robertleeplummerjr
Copy link

I'm curious what this looks like, as source, before and after. Do you have the performance numbers, and the project they ran on? Very interesting stuff!

@robertleeplummerjr
Copy link

Would you consider closing this here, and reopening at: https://github.com/harthur-org/brain.js/pulls?

If so, we could add you as a collaborator.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants