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

Minor QoL fixes and major compile time improvements #131

Merged
merged 5 commits into from
Dec 11, 2023

Conversation

Paul1365972
Copy link
Contributor

This PR adds an optimized function for iterating over all blocks inside a region, skipping all empty chunk sections.
This improves compile time speeds from ~200ms down to ~20ms on my machine for normal sized 256x256 plots.

Other changes:

  • Same improvement for //update
  • When executing //update without a selection the entire plot is updated instead
  • Added -u flag for the //paste command to immediately update the pasted schematic
  • /rtps u now works as an alias for /rtps unlimited

I hope someone has a good idea on how to deduplicate the optimized function without introducing overhead.

- Improve //update performance
- Allow for plot wide //update
- Update after paste with //paste -u
- Improve /rtps u[nlimited] ergonomics
Copy link
Member

@StackDoubleFlow StackDoubleFlow left a comment

Choose a reason for hiding this comment

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

I feel it's rather odd that //update would update the entire plot by default. Maybe it's better to have it behind a new flag like //update -p. That would at least prevent people from accidentally updating their entire plot (a potentially expensive operation)

README.md Outdated Show resolved Hide resolved
Copy link
Member

@StackDoubleFlow StackDoubleFlow left a comment

Choose a reason for hiding this comment

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

Good work!

@StackDoubleFlow StackDoubleFlow merged commit 2ff1eee into MCHPR:master Dec 11, 2023
1 check passed
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.

2 participants