Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Optimize CharClass::Matcher for u16, u32 le/be #231

Open
rurban opened this issue Dec 7, 2016 · 0 comments
Open

Optimize CharClass::Matcher for u16, u32 le/be #231

rurban opened this issue Dec 7, 2016 · 0 comments
Assignees
Projects

Comments

@rurban
Copy link
Member

rurban commented Dec 7, 2016

CharClass::Matcher switches on chars, but can easily be optimized to switch on shorts or ints,
max U32, endian specific. (via #ifdef in the generated .h)
See the "-switch and fast memcmp" section at http://blogs.perl.org/users/rurban/2014/08/perfect-hashes-and-faster-than-memcmp.html

This generates code for regcharclass.h

@rurban rurban self-assigned this Dec 7, 2016
@rurban rurban added this to In progress in cperl Dec 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
cperl
  
In progress
Development

No branches or pull requests

1 participant