[Prev][Next][Index][Thread]
Re: A question
On Wed, Jan 12, 2000 at 02:30:04PM -0500, Scott Ribe wrote:
> > o Optional type annotations.
> >
> > When I'm writing quick prototype code, I can use dynamic typing,
> > *and* I can add type annotations as needed to help document the
> > code for myself. The additional speed that the compiler can extract
> > from these annotations doesn't hurt either.
>
> Now this is one where I got really baffled. Wrote a small database front
> end. Timed some operations. Went back and added pretty complete type
> annotations. (Complete for the repeatedly-called methods.) Got a 10%
> slowdown! I know there's a reason, but I don't know what it is.
Perhaps someone is adding extra typechecks somewhere that don't really
need to exist, instead of simply barreling on through, assuming that
everything is OK.
-igor
References: