Michal Pryc wrote:
Hello, I have identified why the startup of PM is so slow after changes:def __get_publisher_timestamp(self, publisher): import time a = time.time() dt = self.api_o.get_publisher_last_update_time(prefix=publisher) print time.time() - a if dt: return dt.ctime() return dt This result in: bash-3.2$ pfexec python packagemanager.py 8.41350483894Which means that we are loosing 8 seconds. Before this function took less then 0.0001.
That function does not take 8 seconds on my system. What's the output of "pkg publisher" ?
I might also add the function as it was before was also wrong; it was returning the time as UTC, not local to the system. But I don't see how that would add that much time to it.
So if it will be still so slow, we will need to revert back to using the old one.
We need to work out the performance issue then and why there is one. Cheers, -- Shawn Walker _______________________________________________ pkg-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
