Ok - I don't see anywhere in the current CVS where refill is being
used, so the code behaves exactly the same way at the moment I think?
It has been my assumption that creating a new instance of a class is
not a problem, no more complex than creating an array, it must be the
code in the constructor that causes it to be slow - which is
something we need in all cases. Also - I don't find "new zids"
inside any loops, at least not in any tight loops that appear in the
same screen as the call.
Is there some place where you see it being used inefficiently?
- Mitra
At 8:56 PM +0100 17/2/03, Jakub Adamek wrote:
>Mitra,
>
>I really love the zids class. I have moved the constructor body to the
>method refill() and call this function from the constructor. It's
>because I am not sure how efficient it is to create a new class each
>time in a loop.
>
>Jakub
>
>
>
>-------------------------------------------------------
>This sf.net email is sponsored by:ThinkGeek
>Welcome to geek heaven.
>http://thinkgeek.com/sf
>_______________________________________________
>Apc-aa-coders mailing list
>Apc...@li...
>https://lists.sourceforge.net/lists/listinfo/apc-aa-coders
--
Mitra Technology Consulting - www.mitra.biz - mi...@mi...
02-6684-8096 or 0414-648-0722
Life is a Mystery to be Lived, not a Problem to be Solved
|