sm-sorcery-bugs AT lists.ibiblio.org
Subject: Bugs for Sorcery are reported here
List archive
[SM-Sorcery-Bugs] [Bug 6296] New: pure bash libmisc - explode function
- From: bugzilla-daemon AT metalab.unc.edu
- To: sm-sorcery-bugs AT lists.ibiblio.org
- Subject: [SM-Sorcery-Bugs] [Bug 6296] New: pure bash libmisc - explode function
- Date: Thu, 4 Mar 2004 06:32:06 -0500
http://bugs.sourcemage.org/show_bug.cgi?id=6296
Summary: pure bash libmisc - explode function
Product: Sorcery
Version: Devel
Platform: Other
OS/Version: other
Status: NEW
Severity: enhancement
Priority: P2
Component: subroutines
AssignedTo: sm-sorcery-bugs AT lists.ibiblio.org
ReportedBy: v.merkatz AT gmx.net
I've rewritten the explode function in libmisc using only bash. I needed
something similar for my udev.missing stuff and at that time on boot i can't
rely on awk to exist. After doing that i thought i'd test rewriting explode,
and
it's quite a bit faster, especially if called many times, since it doesn't
have
to start awk all the time.
This is a run to explode all lines in /var/state/sorcery/packages:
arwed@Otherland:~/temp/explode$ time sh explode-awk
real 0m10.243s
user 0m6.135s
sys 0m2.516s
arwed@Otherland:~/temp/explode$ time sh explode-bash
real 0m1.550s
user 0m1.416s
sys 0m0.011s
The output is exactly the same for all files i tried, and i tested all
occurences of explode in sorcery, everything still works.
Real speedup overall is almost not noticeable, but sorcery queue is about two
seconds faster with the bash explode here :)
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
- [SM-Sorcery-Bugs] [Bug 6296] New: pure bash libmisc - explode function, bugzilla-daemon, 03/04/2004
Archive powered by MHonArc 2.6.24.