[PATCH 0/3] Parse <elf.h> in the glibcelf Python module
Florian Weimer
fweimer@redhat.com
Mon Sep 5 14:36:16 GMT 2022
* Florian Weimer via Libc-alpha:
> This simplifies maintenance (backporting in particular), adds additional
> consistency checks (for otherwise-unused constants in <elf.h>), and
> should help with compatibility with earlier Python versions.
>
> If we want to use glibcelf more extensively in the test suite, I think
> we need to optimize the parser performance a bit. The prefix matching
> is currently rather inefficient. It should not be too hard to change
> that.
Actually, profiling suggests it's the C tokenizer. 8-/ That's going to
be more difficult to optimize. It's still not too bad for now.
Thanks,
Florian
More information about the Libc-alpha
mailing list