diff options
| author | Jonathan Corbet <[email protected]> | 2025-07-03 18:43:58 +0000 |
|---|---|---|
| committer | Jonathan Corbet <[email protected]> | 2025-07-08 14:06:25 +0000 |
| commit | 8078e0ed1f3f3bac776b412b0f85ada86f91fef0 (patch) | |
| tree | f5bfc6121ba005e34a8fafc32cd00509a1c8d409 /scripts/lib/kdoc/kdoc_parser.py | |
| parent | docs: kdoc: don't reinvent string.strip() (diff) | |
| download | kernel-8078e0ed1f3f3bac776b412b0f85ada86f91fef0.tar.gz kernel-8078e0ed1f3f3bac776b412b0f85ada86f91fef0.zip | |
docs: kdoc: micro-optimize KernRe
Rework _add_regex() to avoid doing the lookup twice for the (hopefully
common) cache-hit case.
Reviewed-by: Mauro Carvalho Chehab <[email protected]>
Tested-by: Akira Yokosawa <[email protected]>
Signed-off-by: Jonathan Corbet <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions
