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

States as functions #70

Merged
merged 10 commits into from
Jul 31, 2023
Merged

States as functions #70

merged 10 commits into from
Jul 31, 2023

Conversation

untitaker
Copy link
Owner

@untitaker untitaker commented Jul 30, 2023

inspired by lol-html, convert all states to functions

there is a bug in is_consumed_as_part_of_an_attribute because function pointers are not actually comparable

Individual states can now be inlined into other states by using ControlToken::inline_next_state. I used a profile of most frequent transitions from sentry-docs to determine which transitions to inline.

@untitaker untitaker changed the title wip/states as functions States as functions Jul 31, 2023
@untitaker untitaker marked this pull request as ready for review July 31, 2023 01:13
@untitaker untitaker merged commit d6a0a3e into main Jul 31, 2023
6 checks passed
@untitaker untitaker deleted the wip/states-as-functions branch July 31, 2023 01:13
@not-my-profile
Copy link
Contributor

Hahahaha ... Giant Unreadable Macro code. I'm happy that the acronym still works out.

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