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

Remove the decompiler block limit #10010

Merged
merged 2 commits into from May 9, 2024
Merged

Conversation

riknoll
Copy link
Member

@riknoll riknoll commented May 9, 2024

People run into this all the time on the forum, most recently here:

https://forum.makecode.com/t/my-code-seems-to-big-to-be-decompile-in-block/28637/4

If you have a very large blocks project, you can get stuck if you switch to text because we have a limit in place for the maximum size of a project we decompile. This limit was added many years ago in response to an issue where someone tried to decompile a gigantic script (they had copy+pasted code over and over again) and it basically hung the browser when Blockly tried to load the gigantic workspace file we generated.

I think this made sense at the time, but nowadays Blockly perf has improved and I don't think we need the restriction anymore. I was able to decompile a 9000 block program locally just now (on my admittedly nice laptop) and it was fine, it just took a while for Blockly to render the workspace.

@riknoll riknoll requested a review from a team May 9, 2024 22:42
Copy link
Contributor

@eanders-ms eanders-ms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes!

@riknoll riknoll merged commit 3711bcb into master May 9, 2024
6 checks passed
@riknoll riknoll deleted the dev/riknoll/raise-block-limit branch May 9, 2024 22:53
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

Successfully merging this pull request may close these issues.

None yet

2 participants