Right, thought it was something like that.

As for a cheap way of getting the count, I wouldn't mind something like a 
HEADERGET_NODATA flag to headerGet(), IIRC I encountered some other use-case 
for such a thing not so long ago (quite possibly the same: getting count of 
something)

OTOH applyRetrofits() is hardly performance-critical piece of code in middle of 
tight loop, nobody is going to notice if you use headerGet() to get the whole 
deal. And HEADERGET_MINMEM will make it even less noticeable.

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

Reply via email to