@pmatilai Sorry, I have to disagree. It's not that cheap, as I said in the 
ticket itself:
>  when the former query takes 0.03s, the latter can take up to 2 seconds.

In my company, as everything is distributed as RPM packages, we need to query 
that a lot during the build, to get the RPM dependencies right. This means that 
`rpm -qf` can easily be called a hundred times - which means 200 seconds (more 
than 3 minutes!) is spent on waiting for `rpm -qf` alone on every build! I'm 
sure you will agree that it's a huge waste of time.
Reducing 2 sec to 0.03s, when it's multiplied by hundred, gives a real benefit.
Please reconsider.

Also, if I requested rpm -qf /opt/pkg/mylib/1.100/lib - what's the point of 
checking, say, /opt/firefox/lib? 
I didn't request just "**/lib" (in this case I would expect it to scan 
everything), I was very specific - I'm interested in /opt/pkg/mylib/1.100/lib 
and nothing else, so why scanning anything else at all?

-- 
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/1770#issuecomment-914079005
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to