[Rpm-maint] [rpm-software-management/rpm] Tags as an alternative to Groups (#632)
jengelh
notifications at github.com
Fri Feb 15 14:51:47 UTC 2019
Excuse me if I do not see the complexity here. I am seeing the tag list as a (for rpm) non-interpreted single-value just like what `Group` is, where spaces are interpreted by downstream tools. Like so:
```
rpm -qa --qf="%{NAME}: %{GROUP}\n" >cache.txt
grep -Pi '^.*?:.*\b(shoot|arcade)\b' cache.txt
```
For a DB size of 1343 packages, the rpm command takes like 0.74s on my i7-8250U system, and the grep an additional 0.013s. Upscaling that for 60000 packages (last TW size I remember) would bring grep to 0.5s. Considering this example uses PCRE _and_ effectively does a full table scan here, that looks quite competetive for not even using a proper hash/btree index.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/632#issuecomment-464077039
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20190215/6c5214f6/attachment-0001.html>
More information about the Rpm-maint
mailing list