From: "Warren W. Gay VE3WWG" <ve3wwg@cogeco.ca>
Subject: Re: Need advice re package organization.
Date: Fri, 01 Aug 2003 08:51:33 -0400
Date: 2003-08-01T08:51:33-04:00 [thread overview]
Message-ID: <jntWa.10498$Cx4.994723@news20.bellglobal.com> (raw)
In-Reply-To: <3F299452.4000802@attbi.com>
Robert I. Eachus wrote:
> Warren W. Gay VE3WWG wrote:
>
>> That appears to accomplish the end result. However, this
>> design pays a price in allocating and freeing an additional
>> [sub]object.
>>
>> For some designs this would be acceptable, but not where
>> you have many instances of the object, where the price
>> of allocate/free is too heavy.
>
>
> No, remember the access all. The values of the actual objects need not
> be on the heap, or could be on the heap but not individually allocated
> For example, I have a package that implements sparse matrices, as linked
> lists of rows and columns. Very messy and the allocation overhead might
> make it useless if the package didn't just grab chunks of heap and
> manage them as 10,000 separate nodes. This way, creating an array takes
> time proportional to the number of non-zero elements, but much faster
> than allocating each element, and freeing an array takes time
> proportional to the number of non-zero columns.
And that is fine if you are instantiating all of those objects in
one fell swoop, or managing a pool of such. But _all_ of these
are "work-arounds" to the original problem. All of these work
arounds take you away from the original problem at hand. Others
will also argue that other environments do not require these
work-arounds, either.
--
Warren W. Gay VE3WWG
http://home.cogeco.ca/~ve3wwg
next prev parent reply other threads:[~2003-08-01 12:51 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-26 13:08 Need advice re package organization Bobby D. Bryant
2003-07-26 14:25 ` Robert I. Eachus
2003-07-26 15:27 ` Warren W. Gay VE3WWG
2003-07-26 22:00 ` Robert I. Eachus
2003-07-27 22:01 ` chris
2003-07-28 2:53 ` Robert I. Eachus
2003-07-29 4:52 ` Richard Riehle
2003-07-27 22:02 ` Warren W. Gay VE3WWG
2003-07-28 8:38 ` Dmitry A. Kazakov
2003-07-29 17:18 ` Warren W. Gay VE3WWG
2003-07-30 8:42 ` Dmitry A. Kazakov
2003-07-30 21:00 ` Warren W. Gay VE3WWG
2003-07-30 22:46 ` Randy Brukardt
2003-07-31 16:39 ` Warren W. Gay VE3WWG
2003-07-31 17:31 ` Randy Brukardt
2003-07-31 21:00 ` Warren W. Gay VE3WWG
2003-07-31 22:13 ` Robert I. Eachus
2003-08-01 12:51 ` Warren W. Gay VE3WWG [this message]
2003-07-31 5:57 ` Matthew Heaney
2003-07-31 16:57 ` Warren W. Gay VE3WWG
2003-07-31 22:33 ` Robert I. Eachus
2003-08-01 2:58 ` Chad R. Meiners
2003-08-01 13:51 ` Stephen Leake
2003-08-01 22:15 ` Robert I. Eachus
2003-08-04 13:45 ` Stephen Leake
2003-08-01 13:01 ` Warren W. Gay VE3WWG
2003-07-31 9:04 ` Dmitry A. Kazakov
2003-07-31 16:59 ` Warren W. Gay VE3WWG
2003-07-31 20:41 ` Randy Brukardt
2003-07-31 21:15 ` Warren W. Gay VE3WWG
2003-08-01 20:04 ` Randy Brukardt
2003-08-01 21:33 ` Stephen Leake
2003-08-04 19:40 ` Randy Brukardt
2003-08-04 19:52 ` Stephen Leake
2003-08-05 3:36 ` Richard Riehle
2003-08-05 4:03 ` Hyman Rosen
2003-08-05 7:16 ` Dmitry A. Kazakov
2003-07-26 17:03 ` Nick Roberts
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox