Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Nov 2011 21:11:07 -0800
From:      Alfred Perlstein <alfred@freebsd.org>
To:        Garrett Cooper <yanegomi@gmail.com>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r227483 - head/usr.sbin/portsnap/portsnap
Message-ID:  <20111113051107.GA94817@elvis.mu.org>
In-Reply-To: <32EF12FA-07AC-481C-A407-3C8B578484C4@gmail.com>
References:  <201111130318.pAD3IvGr074144@svn.freebsd.org> <32EF12FA-07AC-481C-A407-3C8B578484C4@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
* Garrett Cooper <yanegomi@gmail.com> [111112 19:25] wrote:
> On Nov 12, 2011, at 7:18 PM, Alfred Perlstein wrote:
> 
> > Author: alfred
> > Date: Sun Nov 13 03:18:57 2011
> > New Revision: 227483
> > URL: http://svn.freebsd.org/changeset/base/227483
> > 
> > Log:
> >  Utilize shell's IFS instead of forking ~6 processes to
> >  handle splitting input files on a '|'.  This greatly
> >  reduces the time taken to process several databases
> >  during the update process.
> > 
> >  Additionally add some more debug logging.
> > 
> > Modified:
> >  head/usr.sbin/portsnap/portsnap/portsnap.sh
> > 
> 
> 	Wouldn't
> 
> oldIFS=$IFS
> # Blah blah
> IFS=$oldIFS
> 
> 	be better?

Meh, it's hard to do it in some of the code because of the
'return' in the middle of the logic and in the other places
I didn't really care that much.

That said, I'll happily take a patch to clean it up some.

Just watch the logic, it's hairy in the places I used
'local'.

-- 
- Alfred Perlstein
.- VMOA #5191, 03 vmax, 92 gs500, 85 ch250, 07 zx10
.- FreeBSD committer



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