Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Mar 2015 06:48:21 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 198650] [sysutils/bsdstats] [PATCH] Optimization of ports reporting
Message-ID:  <bug-198650-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198650

            Bug ID: 198650
           Summary: [sysutils/bsdstats] [PATCH] Optimization of ports
                    reporting
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Keywords: patch
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs@FreeBSD.org
          Reporter: yuri@rawbw.com
                CC: bsdstats@nanoman.ca
             Flags: maintainer-feedback?(bsdstats@nanoman.ca)
                CC: bsdstats@nanoman.ca
          Keywords: patch

Created attachment 154443
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=154443&action=edit
patch

The attached patch optimizes the collection and reporting of ports by bsdstats.
On my system with 1300+ installed ports it brought the wall-clock time down
from 38sec to 21sec. User time dropped 10.5sec->0.25sec, system time dropped
13.6sec->0.33sec.

Process is streamlined, many function and external executable calls are
eliminated.

Please note that there is no need to uri escape the ports information because
the character set of port names is limited, and doesn't cause problems during
submission. Other than comma and plus characters now aren't uri-escaped, I
verified that the outputs are identical.

The remaining 20 sec or runtime is purely due to the checkin server delay. The
server needs to be looked at to determine what takes such a long time there.

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-198650-13>