-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Symmetric multi-processing (SMP) support #924
Comments
That would require a powerful setup |
On the contrary, it should be feasible to emulate a multi-core CPU with SharedArrayBuffer, web workers/threads, and isolating state like the instruction pointer. Not sure how that looks yet with the jitter, whether multiple emulated CPUs could share a single instance, or if each CPU needs its own. |
I'm not opposed to having SMP (especially in the form of a user-contributed PR), and it has been shown to be feasible by jor1k and others. That said, I'd like to improve single-core performance first, since v86 is still fairly slow in that regard (compared to e.g. qemu-tcg). |
@copy I'm quite interested in improving performance, do you have any insight as to where to start? |
Generally, find some OS and/or program you'd like to make run faster, profile it (https://profiler.firefox.com/docs/ for a sampling profiler, Some concrete ideas:
|
Multi CPU support using platform appropriate primitives for parallel computing, such as web workers in the browser, or worker-threads in Node.
The text was updated successfully, but these errors were encountered: