Skip to content

Conversation

mmirate
Copy link

@mmirate mmirate commented Dec 22, 2024

This should probably produce better regexes internally; additionally, I know it will produce Hirs that are more amenable to being walked recursively (trading away performance for content-intelligence) to produce human-readable regex syntax.

(My own usecase involves automating the operation of a ghastly pre-existing machine that takes PCREs.)

This should probably produce better regexes internally; additionally, I know it will produce Hirs that are more amenable to being walked recursively (trading away performance for content-intelligence) to produce human-readable regex syntax.

(My own usecase involves automating the operation of a ghastly pre-existing machine that takes PCREs.)
}

#[allow(clippy::inline_always)]
#[inline(always)] // prevents blowing the stack
Copy link
Member

Choose a reason for hiding this comment

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

This comment is worrying me. I can't see why this is supposed to prevent stack overflow. Can you say more about why you have this?

@BurntSushi
Copy link
Member

Also, can you please write some tests for this?

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