| Summary: | app-admin/gentoolkit-0.1.30: shorten "sort|uniq" to "sort -u" | ||
|---|---|---|---|
| Product: | Portage Development | Reporter: | Nicolas Kaiser <nikai> |
| Component: | Unclassified | Assignee: | Portage team <dev-portage> |
| Status: | RESOLVED FIXED | ||
| Severity: | trivial | CC: | mholzer |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: |
shorten sort|uniq to sort -u
same for /usr/bin/dep-clean same for /usr/bin/gentool-package-count same for /usr/bin/revdep-rebuild again /usr/bin/revdep-rebuild |
||
|
Description
Nicolas Kaiser
2003-08-06 15:05:59 UTC
Created attachment 15632 [details, diff]
shorten sort|uniq to sort -u
Created attachment 15633 [details, diff]
same for /usr/bin/dep-clean
The above was for /usr/bin/qpkg, now I found some more of these.
This is /usr/bin/dep-clean.
Created attachment 15634 [details, diff]
same for /usr/bin/gentool-package-count
Created attachment 15635 [details, diff]
same for /usr/bin/revdep-rebuild
Is there a reason you want to use -u option? "sort -u" is a lot faster. Here's a nice article about it: http://www.itworld.com/nl/unix_sys_adm/04112001/ Quote:"Large problems or easy optimization makes optimizing a solution sensible. In the case of sort -u, the latter is true (..). If you don't need extra system calls (i.e., to uniq), then avoid it." Created attachment 15871 [details, diff]
again /usr/bin/revdep-rebuild
I just see uniq is called twice in a row in rev-dep-rebuild.
One time is enough ;)
qpkg is now patched revdep-rebuild is patched too in cvs |