From: dewar@merv.cs.nyu.edu (Robert Dewar)
Subject: Re: Shared Generic Instance Code
Date: 1997/04/07
Date: 1997-04-07T00:00:00+00:00 [thread overview]
Message-ID: <dewar.860424457@merv> (raw)
In-Reply-To: 3346F7E8.78E6@bix.com
<<Though I haven't done a lot of timing studies, I have the distinct
impression that big generics can *drastically* slow down compilation
(Gnat 3.04a NT/95). I presume the macro is essentially expanded and
recompiled each time it's instantiated?>>
Compiling a macro expanded generic is indeed like compiling the source,
it should be no slower or no faster. Big generics are best avoided if
you are working with a compiler without shared generics and you plan
to do many instantiations, as I mentioned before, have a look at the
GNAT implementation of Integer_IO or Float_IO to see what I mean by
this.
But in any case I was talking about runtime efficiency, not compile
time speed, when I said that macro instantiated generics will generally
be significantly more efficient.
prev parent reply other threads:[~1997-04-07 0:00 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-04-01 0:00 Shared Generic Instance Code david scott gibson
1997-04-01 0:00 ` Joel VanLaven
1997-04-01 0:00 ` Robert A Duff
1997-04-02 0:00 ` Robert Dewar
1997-04-02 0:00 ` Robert A Duff
1997-04-02 0:00 ` Robert Dewar
1997-04-02 0:00 ` Robert A Duff
1997-04-01 0:00 ` Pat Rogers
1997-04-01 0:00 ` Robert A Duff
1997-04-02 0:00 ` Robert Dewar
1997-04-05 0:00 ` Nick Roberts
1997-04-05 0:00 ` Robert A Duff
1997-04-05 0:00 ` Nick Roberts
1997-04-06 0:00 ` Robert Dewar
1997-04-02 0:00 ` Jon S Anthony
1997-04-02 0:00 ` Robert A Duff
1997-04-03 0:00 ` Robert Dewar
1997-04-03 0:00 ` Jon S Anthony
1997-04-03 0:00 ` Robert Dewar
1997-04-03 0:00 ` Corey Minyard
1997-04-03 0:00 ` Bill Keen
1997-04-03 0:00 ` Robert Dewar
1997-04-04 0:00 ` Fergus Henderson
1997-04-04 0:00 ` Robert Dewar
1997-04-04 0:00 ` Robert A Duff
1997-04-04 0:00 ` Bill Keen
1997-04-04 0:00 ` Robert Dewar
1997-04-05 0:00 ` Tom Moran
1997-04-06 0:00 ` Nick Roberts
1997-04-07 0:00 ` Robert Dewar [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox