Opened 12 years ago

Closed 11 years ago

#34561 closed defect (wontfix)

port list is slow

Reported by: mf2k (Frank Schima) Owned by: macports-tickets@…
Priority: Low Milestone:
Component: base Version: 2.1.1
Keywords: Cc: cooljeanius (Eric Gallager)
Port:

Description

The port list command is amazingly slow. It seems like too much processing is occurring. I'd supply a patch but I don't know Tcl and I don't have time to learn it.

Here's an example:

port list py24*

Change History (3)

comment:1 Changed 11 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:2 Changed 11 years ago by cooljeanius (Eric Gallager)

Doing the example in the OP with time:

real	2m4.779s
user	1m39.087s
sys	0m4.648s

comment:3 Changed 11 years ago by neverpanic (Clemens Lang)

Resolution: wontfix
Status: newclosed

That's because port list runs Portfiles. If you just want the names, you can use port echo instead. See wiki:FAQ#portlist.

Unfortunately, there is no magic switch to flip to make executing Portfiles much faster :(

Note: See TracTickets for help on using tickets.