linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: jw schultz <jw@pegasys.ws>
To: linux-kernel@vger.kernel.org
Subject: Re: BK-kernel-tools/shortlog update
Date: Wed, 26 Mar 2003 16:46:01 -0800	[thread overview]
Message-ID: <20030327004601.GI27622@pegasys.ws> (raw)
In-Reply-To: <Pine.LNX.4.50.0303261331540.1391-100000@twinlark.arctic.org>

On Wed, Mar 26, 2003 at 01:33:45PM -0800, Jauder Ho wrote:
> 
> one suggestion I would make would be to break out the regex into a
> seperate file, that way you will no longer need to touch the script once
> the core logic is correct.
> 
> got this working nicely to count users based upon patterns.
> 
> --jauder

Second that.

Should definitely be split between fixed (quick hash lookup)
and regex.  Regexes for dns entries get ugly fast (. as
wildcard).  The split could be done while slurping the file
(check for /\*\[\]\+/).

> 
> On Wed, 26 Mar 2003, Jeff Garzik wrote:
> 
> > On Wed, Mar 26, 2003 at 09:10:31PM +0100, Matthias Andree wrote:
> > > On Wed, 26 Mar 2003, Linus Torvalds wrote:
> > >
> > > > Btw, one feature I'd like to see in shortlog is the ability to use
> > > > regexps for email address matching, ie something like
> > > >
> > > > 	'torvalds@.*transmeta.com' => 'Linus Torvalds'
> > > > 	...
> > > > 	'alan@.*swansea.linux.org.uk' => 'Alan Cox'
> > > > 	...
> > > > 	'bcrl@redhat.com' => 'Benjamin LaHaise',
> > > > 	'bcrl@.*' => '?? Benjamin LaHaise',
> > > > 	..
> > > >
> > > > I don't know whether you can force perl to do something like this, but if
> > > > somebody were to try...
> >
> > Perl is very regex-friendly.  Sure it can do this :)
> >
> >
> > > I'd like to keep the hash for all those addresses that aren't wildcards
> > > and that aren't regexps -- we have fast, that is O(1) to O(log n),
> > > access to the hash (depending on Perl's implementation) and we have
> > > worse than O(n) for regexp, where n is the count of address strings or
> > > regexps.
> > >
> > > Would you agree to a version that has a set of fixed addresses and a
> > > separate list of regexps, tries the hash first and then a list of
> > > regexps?  That sounds like a) easy addition, b) good performance to me
> > > (before implementing it). If so, I could add some code for that feature.
> >
> > Do we really care about performance here?
> >
> > I think maintain-ability is probably more important.
> >
> > In any case, splitting the lists into "fixed" and "regex" doesn't seem
> > like a bad idea, provided that the change was fairly easy and
> > self-contained.
> >
> > 	Jeff
> >
> >
> >
> > -
> > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at  http://vger.kernel.org/majordomo-info.html
> > Please read the FAQ at  http://www.tux.org/lkml/
> >
> >
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/

-- 
________________________________________________________________
	J.W. Schultz            Pegasystems Technologies
	email address:		jw@pegasys.ws

		Remember Cernan and Schmitt

  reply	other threads:[~2003-03-27  0:34 UTC|newest]

Thread overview: 124+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-26 10:30 BK-kernel-tools/shortlog update Matthias Andree
2003-03-26 17:21 ` Linus Torvalds
2003-03-26 19:25   ` Olaf Dietsche
2003-03-26 20:10   ` Matthias Andree
2003-03-26 21:15     ` Jeff Garzik
2003-03-26 21:33       ` Jauder Ho
2003-03-27  0:46         ` jw schultz [this message]
2003-03-26 21:08   ` Matti Aarnio
2003-03-26 21:14   ` Matthias Andree
2003-03-26 10:33 Matthias Andree
2003-03-26 21:21 Matthias Andree
2003-03-28 11:00 Matthias Andree
2003-04-13 10:50 Matthias Andree
2003-04-27 13:24 Matthias Andree
2003-04-28 23:08 Matthias Andree
2003-05-15 14:11 Matthias Andree
2003-05-29 11:26 Matthias Andree
2003-06-04 19:04 Matthias Andree
2003-06-09 10:24 Matthias Andree
2003-06-09 10:26 Matthias Andree
2003-06-17 14:54 Matthias Andree
2003-06-17 14:57 Matthias Andree
2003-06-17 14:57 Matthias Andree
2003-06-20 23:06 Matthias Andree
2003-06-24 11:00 Matthias Andree
2003-06-30  8:32 Matthias Andree
2003-07-06 21:44 Matthias Andree
2003-07-11 12:12 Matthias Andree
2003-07-15 13:20 Matthias Andree
2003-07-21  9:17 Matthias Andree
2003-07-21  9:17 Matthias Andree
2003-07-21  9:30 John Bradford
2003-07-30  8:38 Matthias Andree
2003-08-08 22:51 Matthias Andree
2003-08-24 11:02 Matthias Andree
2003-08-28 16:29 Matthias Andree
2003-08-29 13:00 Matthias Andree
2003-08-31 14:16 Matthias Andree
2003-09-03 23:33 Matthias Andree
2003-09-04 16:05 ` Dave Jones
2003-09-04 16:09   ` Matthias Andree
2003-09-04 16:17     ` Dave Jones
2003-09-04 16:33     ` Linus Torvalds
2003-09-04 17:42       ` Matthias Andree
2003-09-04 19:49         ` Greg KH
2003-09-04 20:54           ` Matthias Andree
2003-09-04 20:32         ` Dave Dillow
2003-09-04 20:57 Matthias Andree
2003-09-11  9:18 Matthias Andree
2003-09-22 14:54 Matthias Andree
2003-10-08 21:59 Matthias Andree
2003-10-16 14:26 Matthias Andree
2003-10-27 12:09 Matthias Andree
2003-11-19 16:11 Matthias Andree
2003-11-22 15:05 Matthias Andree
2003-11-25  3:21 Matthias Andree
2003-11-27 11:03 Matthias Andree
2003-12-06 16:41 Matthias Andree
2003-12-20 23:36 Matthias Andree
2003-12-20 23:39 ` Matthias Andree
2003-12-20 23:36 Matthias Andree
2003-12-20 23:36 Matthias Andree
2003-12-21  3:19 Matthias Andree
2003-12-22  1:18 Matthias Andree
2003-12-30  2:16 Matthias Andree
2003-12-30  2:16 Matthias Andree
2004-01-07 11:29 Matthias Andree
2004-01-16 14:41 Matthias Andree
2004-01-19 17:01 Matthias Andree
2004-01-27 14:46 Matthias Andree
2004-03-04 17:09 Matthias Andree
2004-03-04 17:09 Matthias Andree
2004-03-09  0:16 Matthias Andree
2004-03-15 17:12 Matthias Andree
2004-03-23 11:51 Matthias Andree
2004-03-30  1:17 Matthias Andree
2004-03-30 14:05 Matthias Andree
2004-04-01 21:48 Matthias Andree
2004-04-15 16:10 Matthias Andree
2004-04-20 11:14 Matthias Andree
2004-04-26  8:40 Matthias Andree
2004-05-03  9:23 Matthias Andree
2004-05-14 20:08 Matthias Andree
2004-06-03  8:00 Matthias Andree
2004-06-07 11:36 Matthias Andree
2004-07-02 10:40 Matthias Andree
2004-07-12  9:06 Matthias Andree
2004-07-12  9:21 ` Matthias Andree
2004-07-16 13:51 Matthias Andree
2004-08-04  9:00 Matthias Andree
2004-08-10 12:24 Matthias Andree
2004-08-16 11:18 Matthias Andree
2004-08-23 10:43 Matthias Andree
2004-08-24 14:18 Matthias Andree
2004-08-25 16:10 Matthias Andree
2004-09-24 10:09 Matthias Andree
2004-10-06 10:48 Matthias Andree
2004-10-14  7:02 Matthias Andree
2004-10-19  1:43 Matthias Andree
2004-10-19  1:56 Matthias Andree
2004-10-21 22:38 Matthias Andree
2004-11-09  8:42 Matthias Andree
2004-11-09 10:06 ` Måns Rullgård
2004-11-12 10:10 Matthias Andree
2004-12-16 10:18 Matthias Andree
2004-12-20  9:53 Matthias Andree
2004-12-23 10:52 Matthias Andree
2005-01-05 11:58 Matthias Andree
2005-01-05 12:07 ` Matthias Andree
2005-01-08  1:38 Matthias Andree
2005-01-10 18:22 Matthias Andree
2005-01-20  9:27 Matthias Andree
2005-01-20 12:51 ` Adrian Bunk
2005-01-20 13:13   ` Matthias Andree
2005-01-21 14:30 Matthias Andree
2005-02-04 11:35 Matthias Andree
2005-02-07 12:45 Matthias Andree
2005-02-09  9:23 Matthias Andree
2005-02-23 14:43 Matthias Andree
2005-03-03 12:19 Matthias Andree
2005-03-07 13:50 Matthias Andree
2005-03-09  9:39 Matthias Andree
2005-03-11 10:21 Matthias Andree
2005-03-14  9:49 Matthias Andree

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=20030327004601.GI27622@pegasys.ws \
    --to=jw@pegasys.ws \
    --cc=linux-kernel@vger.kernel.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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).