Skip to content

Allow constructing a finder via a const fn #63

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

Open
Dr-Emann opened this issue May 21, 2025 · 0 comments
Open

Allow constructing a finder via a const fn #63

Dr-Emann opened this issue May 21, 2025 · 0 comments

Comments

@Dr-Emann
Copy link
Collaborator

It would be really nice if we could just have

const XML3: BytesConst = jetscii::bytes![0, 5, 15];

This requires every implementation to be constructible at compile time, even for simd algorithms which may not have support for the current CPU. This is currently the case for the sse4.2 simd implementation as well as the aarch64 implementation I'm working on (#61), but it would mean we couldn't e.g. use the teddy searcher from aho_corasick

Related to #59, but for Bytes/AsciiChars

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

No branches or pull requests

1 participant