[PATCH] commands: use a class as decorator to build table incrementally

Matt Mackall mpm at selenic.com
Wed May 11 15:25:07 CDT 2011


On Wed, 2011-05-11 at 20:23 +0200, Sune Foldager wrote:
> On 2011-05-11 12:27, Matt Mackall wrote:
> >On Wed, 2011-05-11 at 18:13 +0200, Adrian Buehlmann wrote:
> >> # HG changeset patch
> >> # User Adrian Buehlmann <adrian at cadifra.com>
> >> # Date 1305097807 -7200
> >> # Node ID 8b331aca1943f7840591dd3289e55f99ba164375
> >> # Parent  c97d8485b5fa46c94b8afcfab0cde97629ba4086
> >> commands: use a class as decorator to build table incrementally
> >>
> >> this allows to define the table entries near the command function
> >
> >Thanks, we probably should have done something like this years ago.
> 
> Did you(pl.) read the mail in the other thread about class'es here
> performing substantially worse than functions? Not that I have the
> slightest idea how much we are talking about.

I did. I'd actually be moderately surprised if this were measurable as
we're talking about <100 calls. Though I do intend to actually measure
it myself with our perf module if someone else doesn't do it first.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list