openSUSE / suse-doc-style-checker

Style Checker for SUSE Documentation
Other
2 stars 5 forks source link

Pattern model doesn't scale and creates bad performance #160

Open ghost opened 6 years ago

ghost commented 6 years ago

As evidenced by the sheer bulk of patterns necessary to cover the spectrum of SUSE CaaS Platform... it is a huge issue that we are mandating patterns be applied on just one space-separated token:

  1. Each extra space-separated word necessitates a new pattern. Checking for "Container as a Service" v/ "Container a s a Service" necessitates multiple pattern groups, despite the difference being just one small extra space.

  2. This also creates a performance issue: fewer big patterns perform much better than many smaller ones. So, if we could even just on the consumer side concatenate the various patterns belonging to patterngroup, that'd already be fantastic.