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

Micro-optimize Scope access #615

Merged
merged 1 commit into from Sep 14, 2023
Merged

Micro-optimize Scope access #615

merged 1 commit into from Sep 14, 2023

Conversation

Swatinem
Copy link
Member

Instead of having the compiler do bounds-checks and generate panic-ing code, just make that case impossible by making sure there is always a top scope.

Instead of having the compiler do bounds-checks and generate panic-ing code, just make that case impossible by making sure there is always a top scope.
@Swatinem Swatinem self-assigned this Sep 14, 2023
@codecov
Copy link

codecov bot commented Sep 14, 2023

Codecov Report

Merging #615 (7c038e3) into master (10c5640) will not change coverage.
The diff coverage is 100.00%.

❗ Current head 7c038e3 differs from pull request most recent head a7c32e2. Consider uploading reports for the commit a7c32e2 to get more accurate results

@@           Coverage Diff           @@
##           master     #615   +/-   ##
=======================================
  Coverage   73.14%   73.14%           
=======================================
  Files          57       57           
  Lines        6583     6583           
=======================================
  Hits         4815     4815           
  Misses       1768     1768           

@Swatinem Swatinem enabled auto-merge (squash) September 14, 2023 12:48
Copy link
Contributor

@loewenheim loewenheim left a comment

Choose a reason for hiding this comment

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

Making illegal states unrepresentable FTW

@Swatinem Swatinem merged commit 64949dc into master Sep 14, 2023
12 checks passed
@Swatinem Swatinem deleted the swatinem/top-noop branch September 14, 2023 12:54
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