[MacPorts] #55041: mpbb-list-subports is slow
MacPorts
noreply at macports.org
Mon Oct 9 05:34:17 UTC 2017
#55041: mpbb-list-subports is slow
-----------------------------+---------------------
Reporter: ryandesign | Owner: admin@…
Type: enhancement | Status: new
Priority: Normal | Milestone:
Component: server/hosting | Version:
Resolution: | Keywords: mpbb
Port: |
-----------------------------+---------------------
Comment (by ryandesign):
Replying to [comment:4 mojca]:
> Curl might be as fast as is gets, but it would be even faster if we had
a local database with all available files.
Maybe. Seems like something that could easily get out of sync. And how
much time would this save? How quickly can we do a (SQLite?) database
query? The curl check takes about 0.05 seconds, and it looks like we could
cut that to 0.02 by using http instead of https.
> I don't know enough about Tcl to be able to tell how to avoid re-
initializing everything every single time.
I meant: instead of running archive-path.tcl and
port_binary_distributable.tcl and portgroups.tcl and supported-archs.tcl
for each subport, could we combine those into a single script? Move some
of the logic from bash into Tcl? Even though we don't currently run all
four scripts for all ports (some are run conditionally), I feel like
probably most of the time is spent in initialization, such that combining
them into a single script that does all four tasks would still be faster.
--
Ticket URL: <https://trac.macports.org/ticket/55041#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list