diff options
author | Nicolas Vigier <boklm@mageia.org> | 2013-04-14 13:46:12 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2013-04-14 13:46:12 +0000 |
commit | 1be510f9529cb082f802408b472a77d074b394c0 (patch) | |
tree | b175f9d5fcb107576dabc768e7bd04d4a3e491a0 /zarb-ml/mageia-dev/2012-March/013122.html | |
parent | fa5098cf210b23ab4f419913e28af7b1b07dafb2 (diff) | |
download | archives-master.tar archives-master.tar.gz archives-master.tar.bz2 archives-master.tar.xz archives-master.zip |
Diffstat (limited to 'zarb-ml/mageia-dev/2012-March/013122.html')
-rw-r--r-- | zarb-ml/mageia-dev/2012-March/013122.html | 145 |
1 files changed, 145 insertions, 0 deletions
diff --git a/zarb-ml/mageia-dev/2012-March/013122.html b/zarb-ml/mageia-dev/2012-March/013122.html new file mode 100644 index 000000000..866f04713 --- /dev/null +++ b/zarb-ml/mageia-dev/2012-March/013122.html @@ -0,0 +1,145 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> +<HTML> + <HEAD> + <TITLE> [Mageia-dev] [soft-commits] [3526] make clean-rpmsrate 11. 5% faster on average on cached repo directory by + </TITLE> + <LINK REL="Index" HREF="index.html" > + <LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20%5Bsoft-commits%5D%20%5B3526%5D%20make%20clean-rpmsrate%2011.%205%25%0A%20faster%20on%20average%20on%20cached%20repo%20directory%20by&In-Reply-To=%3CCA%2BCX%2BbiPuh%3DvsdprzAdv4P%3DFwSL8C-rxsVNvo%2BtMoPC9ZmAxbg%40mail.gmail.com%3E"> + <META NAME="robots" CONTENT="index,nofollow"> + <META http-equiv="Content-Type" content="text/html; charset=us-ascii"> + <LINK REL="Previous" HREF="013158.html"> + <LINK REL="Next" HREF="013124.html"> + </HEAD> + <BODY BGCOLOR="#ffffff"> + <H1>[Mageia-dev] [soft-commits] [3526] make clean-rpmsrate 11. 5% faster on average on cached repo directory by</H1> + <B>Pascal Terjan</B> + <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20%5Bsoft-commits%5D%20%5B3526%5D%20make%20clean-rpmsrate%2011.%205%25%0A%20faster%20on%20average%20on%20cached%20repo%20directory%20by&In-Reply-To=%3CCA%2BCX%2BbiPuh%3DvsdprzAdv4P%3DFwSL8C-rxsVNvo%2BtMoPC9ZmAxbg%40mail.gmail.com%3E" + TITLE="[Mageia-dev] [soft-commits] [3526] make clean-rpmsrate 11. 5% faster on average on cached repo directory by">pterjan at gmail.com + </A><BR> + <I>Thu Mar 15 20:20:44 CET 2012</I> + <P><UL> + <LI>Previous message: <A HREF="013158.html">[Mageia-dev] freeze push: setup +</A></li> + <LI>Next message: <A HREF="013124.html">[Mageia-dev] [soft-commits] [3526] make clean-rpmsrate 11. 5% faster on average on cached repo directory by +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#13122">[ date ]</a> + <a href="thread.html#13122">[ thread ]</a> + <a href="subject.html#13122">[ subject ]</a> + <a href="author.html#13122">[ author ]</a> + </LI> + </UL> + <HR> +<!--beginarticle--> +<PRE>On Thu, Mar 15, 2012 at 19:13, <<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">root at mageia.org</A>> wrote: +><i> Revision 3526 Author tv Date 2012-03-15 20:13:03 +0100 (Thu, 15 Mar 2012) +</I>><i> +</I>><i> Log Message +</I>><i> +</I>><i> make clean-rpmsrate 11.5% faster on average on cached repo directory by +</I>><i> doing less work in the regexp engine and less path walks +</I>><i> +</I>><i> elapsed time consistently go down from 0.70 to 0.62 on scores of run +</I>><i> (mainly a win in time spend in the kernel) +</I>><i> +</I>><i> Modified Paths +</I>><i> +</I>><i> mgatools/trunk/NEWS +</I>><i> mgatools/trunk/clean-rpmsrate +</I>><i> +</I>><i> Modified: mgatools/trunk/NEWS +</I>><i> =================================================================== +</I>><i> --- mgatools/trunk/NEWS 2012-03-15 19:13:00 UTC (rev 3525) +</I>><i> +++ mgatools/trunk/NEWS 2012-03-15 19:13:03 UTC (rev 3526) +</I>><i> @@ -3,6 +3,7 @@ +</I>><i> o fix matching dkms packages (broken for years...) +</I>><i> o fix matching locales-xx_XX for localized packages +</I>><i> o fix matching mga extension (broken since mga fork) +</I>><i> + o 11.5% faster on average on cached repo directory +</I>><i> +</I>><i> 0.1: +</I>><i> - initial release +</I>><i> +</I>><i> Modified: mgatools/trunk/clean-rpmsrate +</I>><i> =================================================================== +</I>><i> --- mgatools/trunk/clean-rpmsrate 2012-03-15 19:13:00 UTC (rev 3525) +</I>><i> +++ mgatools/trunk/clean-rpmsrate 2012-03-15 19:13:03 UTC (rev 3526) +</I>><i> @@ -18,6 +18,9 @@ +</I>><i> +</I>><i> my %rpm; +</I>><i> foreach my $dir (@ARGV) { +</I>><i> - $rpm{$dir} = [ map { s!$dir/?(.*)\.rpm$!$1!; $_ } glob "$dir/*.rpm" ]; +</I>><i> + chdir($dir); +</I>><i> + $rpm{$dir} = [ map { s!(.*)\.rpm$!$1!; $_ } glob "*.rpm" ]; +</I> +What about s!\.rpm$!! ? + +><i> } +</I>><i> +chdir($ENV{PWD}); # in case -o referes to a relative path +</I>><i> + +</I>><i> cleanrpmsrate($rpmsrate_raw_file, $output_file, \%rpm); +</I>><i> +</I></PRE> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +<!--endarticle--> + <HR> + <P><UL> + <!--threads--> + <LI>Previous message: <A HREF="013158.html">[Mageia-dev] freeze push: setup +</A></li> + <LI>Next message: <A HREF="013124.html">[Mageia-dev] [soft-commits] [3526] make clean-rpmsrate 11. 5% faster on average on cached repo directory by +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#13122">[ date ]</a> + <a href="thread.html#13122">[ thread ]</a> + <a href="subject.html#13122">[ subject ]</a> + <a href="author.html#13122">[ author ]</a> + </LI> + </UL> + +<hr> +<a href="https://www.mageia.org/mailman/listinfo/mageia-dev">More information about the Mageia-dev +mailing list</a><br> +</body></html> |