X-Comment-To: Eric Auer
Hi!
2-���-2002 23:59 [EMAIL PROTECTED] (Eric Auer) wrote to [EMAIL PROTECTED]:
EA> UNTGZ needs more RAM than GUNZIP -> tempfile -> UNTAR,
EA> but I believe it should still be in range of what 16bit can
EA> handle, but ONLY if untgz internally "pipes" data around and
EA> does not gunzip the whole file into RAM before untarring it...
Unlike unziping, which (may) require additional memory for internal
structures, unTARing (should) not require additional memory at all: program
should simply analyze result of unpacking each next buffer immediately after
buffer is ready. Should I explain you what is "coprocesses" and how
implement them?
BTW, Modula-2 have primitives to support this very simple, but powerful
feature. Some years ago as exercise I reimplement them in TP (and then use
it in permutations generation algorithm).
[Just to clarify for those, who not know: coprocesses is _not_
preemprive multitasking and _not_ require hardware depended code (switching
by timer, for example) nor any additional memory (except memory for stack
for each process).]
EA> Both parts must run at the same time and hand over parts of
EA> the gunzipped data right away, without excessive buffering.
EA> In Linux this is no problem, you can have an 8k real pipe buffer
EA> and run gunzip and tar -x in two different tasks, but as we know,
EA> DOS has no real tasks and therefore no real pipes. It just runs
:( Many available resources deprave you (nothing personal!) and you
forget (or not know) that there not required heavy tools like multitasking.
This case may (and should!) be implemented in one program on any hardware
[which have enough resources to perform unziping].
----------
list options/archives/etc.: http://www.topica.com/lists/fd-dev
unsubscribe: send blank email to: [EMAIL PROTECTED]
==^^===============================================================
This email was sent to: [email protected]
EASY UNSUBSCRIBE click here: http://topica.com/u/?bz8Rv5.bbRv4l.YXJjaGl2
Or send an email to: [EMAIL PROTECTED]
T O P I C A -- Register now to manage your mail!
http://www.topica.com/partner/tag02/register
==^^===============================================================