[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gzz] PEG ``vob_colorable--humppake``: Abstract Colorable Vob
From: |
Tuomas Lukka |
Subject: |
Re: [Gzz] PEG ``vob_colorable--humppake``: Abstract Colorable Vob |
Date: |
Tue, 11 Mar 2003 13:19:31 +0200 |
User-agent: |
Mutt/1.4i |
On Tue, Mar 11, 2003 at 11:37:05AM +0200, Asko Soukka wrote:
> Tue, 11 Mar 2003, Tuomas Lukka wrote:
> > > > > > > class Colorable "interface"
> > > > > > > methods
> > > > > > > +Colorable cloneColored(List colors)
> > > > > > > +List getColors()
> > > > > > Now that it's immutable, I'm actually leaning slightly towards
> > > > > > Color[]
> > > > > > colors...
> > > > The reason is performance: arrays perform much better than lists,
> > > > especially
> > > > in kaffe where garbage collection is relatively inefficient.
> > > Well, using Color[] implies additional parameter to provide the amount of
> > > colors in that array.
> > I think first null would be ok.
>
> Good, this keeps the interface simple...
>
> > > Should we now add to AbstractColorableVob a static help function to help
> > > handling Color[]?
> > I don't really like this; it doesn't belong there. If you want to use a list
> > when building it up, you can and call list.toArray
>
> ...and if this won't harm the performance there shouldn't even be nulls at
> the end of arrays.
It will, but the important point is that *the user* of the API is able
to avoid the hit, if desired.
Tuomas
- [Gzz] PEG ``vob_colorable--humppake``: Abstract Colorable Vob, Asko Soukka, 2003/03/10
- Re: [Gzz] PEG ``vob_colorable--humppake``: Abstract Colorable Vob, Tuomas Lukka, 2003/03/10
- Re: [Gzz] PEG ``vob_colorable--humppake``: Abstract Colorable Vob, Asko Soukka, 2003/03/11
- Re: [Gzz] PEG ``vob_colorable--humppake``: Abstract Colorable Vob, Tuomas Lukka, 2003/03/11
- Re: [Gzz] PEG ``vob_colorable--humppake``: Abstract Colorable Vob, Asko Soukka, 2003/03/11
- Re: [Gzz] PEG ``vob_colorable--humppake``: Abstract Colorable Vob, Tuomas Lukka, 2003/03/11
- Re: [Gzz] PEG ``vob_colorable--humppake``: Abstract Colorable Vob, Asko Soukka, 2003/03/11
- Re: [Gzz] PEG ``vob_colorable--humppake``: Abstract Colorable Vob,
Tuomas Lukka <=
- Re: [Gzz] PEG ``vob_colorable--humppake``: Abstract Colorable Vob, Benja Fallenstein, 2003/03/12
- Re: [gzz] Abstract Colorable Vob, Asko Soukka, 2003/03/13
- Re: [gzz] Abstract Colorable Vob, Tuomas Lukka, 2003/03/13
- Re: [gzz] Abstract Colorable Vob, Asko Soukka, 2003/03/14
- Re: [gzz] Abstract Colorable Vob, Tuomas Lukka, 2003/03/14
- Re: [gzz] Abstract Colorable Vob, Asko Soukka, 2003/03/14
- Re: [gzz] Abstract Colorable Vob, Tuomas Lukka, 2003/03/14
- Re: [gzz] Abstract Colorable Vob, Asko Soukka, 2003/03/14
- Re: [gzz] Abstract Colorable Vob, Tuomas Lukka, 2003/03/17
- Re: [gzz] Abstract Colorable Vob, Benja Fallenstein, 2003/03/15