HomeClusterLabs Projects

Fix: libcrmcommon: Speed up parse_op_key.

Description

Fix: libcrmcommon: Speed up parse_op_key.

Look for underscores in the input string. If exactly two underscores are found,
we know this is a very simple (and hopefully common) op key. We can skip running
it through the slower regex code.

Details

Provenance
clumensAuthored on Oct 13 2020, 2:36 PM
Parents
rP891f5ecf4c18: Merge pull request #2188 from clumens/rc1-prep
Branches
Unknown
Tags
Unknown

Event Timeline