Skip to content

Simplify safe_chars construction#81

Open
rgrinberg wants to merge 1 commit intomirage:mainfrom
rgrinberg:safe_chars
Open

Simplify safe_chars construction#81
rgrinberg wants to merge 1 commit intomirage:mainfrom
rgrinberg:safe_chars

Conversation

@rgrinberg
Copy link
Member

  • Move the safe chars type into its own module
  • Add add_{safe,unsafe} functions to make it easy to manipulate

* Move the safe chars type into its own module
* Add add_{safe,unsafe} functions to make it easy to manipulate
@rgrinberg
Copy link
Member Author

False alarm on travis

@rgrinberg
Copy link
Member Author

@dsheets What about this change? Seems like a decent simplification.

@lindig
Copy link

lindig commented Jul 10, 2024

If this is about performance, why not use a bit vector of 256 bits (32 char string or 4 int64 array) to encode safe and unsafe characters?

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