aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/lib/kdoc/kdoc_parser.py
diff options
context:
space:
mode:
authorJonathan Corbet <[email protected]>2025-07-03 18:43:58 +0000
committerJonathan Corbet <[email protected]>2025-07-08 14:06:25 +0000
commit8078e0ed1f3f3bac776b412b0f85ada86f91fef0 (patch)
treef5bfc6121ba005e34a8fafc32cd00509a1c8d409 /scripts/lib/kdoc/kdoc_parser.py
parentdocs: kdoc: don't reinvent string.strip() (diff)
downloadkernel-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