ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Ivan Adzhubey <iadzhubey@rics.bwh.harvard.edu>
To: sisyphus@lists.altlinux.org
Subject: [sisyphus] Huge regression in "grep -i" performance
Date: Sun, 14 Aug 2011 23:36:54 -0400
Message-ID: <201108142336.55033.iadzhubey@rics.bwh.harvard.edu> (raw)

Доброго времени суток всем!

Похоже, у нас в Сизифе регрессия:

https://bugzilla.redhat.com/show_bug.cgi?id=194471

Причем, в отличие от описанного в федоровской багзилле, у нас и fgrep точно 
так же тормозит под UTF. Так что я не уверен, что это именно этот баг, просто 
точнее ничего не нашел.

$ time grep -i ^1ko9 pdb.fragm
1ko9   A      1   312     12   323
0.90user 0.00system 0:00.91elapsed 99%CPU (0avgtext+0avgdata 3824maxresident)k
0inputs+0outputs (0major+297minor)pagefaults 0swaps

$ time fgrep -i 1ko9 pdb.fragm
1ko9   A      1   312     12   323
0.93user 0.00system 0:00.93elapsed 99%CPU (0avgtext+0avgdata 3216maxresident)k
0inputs+0outputs (0major+250minor)pagefaults 0swaps

$ LANG=C time grep -i ^1ko9 pdb.fragm
1ko9   A      1   312     12   323
0.06user 0.00system 0:00.06elapsed 98%CPU (0avgtext+0avgdata 3136maxresident)k
0inputs+0outputs (0major+254minor)pagefaults 0swaps

$ wc -l pdb.fragm
344603 pdb.fragm

$ echo $LANG
en_US.UTF-8

$ grep --version
grep (GNU grep) 2.9
Copyright (C) 2011 Free Software Foundation, Inc.

--Иван

             reply	other threads:[~2011-08-15  3:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-15  3:36 Ivan Adzhubey [this message]
2011-08-15 19:25 ` Dmitry V. Levin
2011-08-15 20:52   ` Dmitry V. Levin
2011-08-16  1:09     ` Ivan Adzhubey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201108142336.55033.iadzhubey@rics.bwh.harvard.edu \
    --to=iadzhubey@rics.bwh.harvard.edu \
    --cc=sisyphus@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git