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

x10 performance boost #6

Open
pinguluk opened this issue Mar 11, 2025 · 3 comments
Open

x10 performance boost #6

pinguluk opened this issue Mar 11, 2025 · 3 comments

Comments

@pinguluk
Copy link

Will this increase the performance by x10?
https://www.youtube.com/watch?v=pNlq-EVld70

@tuokri
Copy link

tuokri commented Mar 12, 2025

On another note, I propose TS types Doom shall be the benchmark for all future TS performance improvements.

@dimitropoulos
Copy link
Collaborator

@pinguluk yes, absolutely. even more, actually, because the thing that bottlenecks Doom is serializing a multi-megabyte-type to string, which is not something a normal typecheck run has to do at all and is exactly the kind of thing Go/Rust/whatever is often WAY WAY faster than JavaScript at.

sub-1-day Doom-first-frame is absolutely on the table

@dimitropoulos
Copy link
Collaborator

@tuokri there's a way in which this could happen.

on one hand, there are things (specifically, appending to an object with hundreds of thousands of keys) that this project does that are extremely extremely abnormal, and thus wouldn't make sense to benchmark because the results wouldn't be applicable to a normal project.

on the other hand, this engine is a general purpose tool that could be used (say, by writing a WebAssembly program) to sortof "randomize" the activity and create a very legit benchmark.

that's something that'd need someone (again, haha, NOT ME) to devote some time to, but it's genuinely a good idea, I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants