GTD XML Outline

forum.wishlist (1998-2005) & forum.gupta.wishlist (2005-2010)
Posts: 195
Joined: 02 Oct 2018, 17:35
Location: San Pedro Sula, Honduras

GTD XML Outline

Post by czavala » 14 Mar 2007, 20:53

 Posted by:  Conrado ZAVALA 

Dear Gupta,

Do you beleive that in the future Gupta will save the outline as XML instead
of text? IMHO I think this could solve the memory problems when opening big
APT files (for instance 23 MB like in my case). After all text files are
not meant to be "outlined".



Jeff Luther
Site Admin
Site Admin
United States of America
Posts: 2370
Joined: 04 Mar 2017, 18:34
Location: Palm Springs, California

GTD XML Outline

Post by Jeff Luther » 14 Mar 2007, 22:08

 Posted by:  Jeff Luther 

'text files are not meant to be "outlined" ' -- ??? the text outline is simply a
method for TD to use to build the application in memory, Conrado. That includes
building the symbol table, parsing each item so it becomes doubly-linked code
items in memory, etc.

It isn't as if TD just puts the APT into memory and reads down the source
code (much like it would a recipe) to run your application, one line a time.

Unless Gupta changes its memory model and internal structure, XML format seems
to me no better (or worse) than the .head or indent structure it uses now.

As for binary mode, that APP file is really a 'snapshot' (as I recall) of the
memory structure for your application. That's why it reads in fast: the parsing,
building et al an APT requires are already done. Bad news (perhaps) is that
if that binary file is corrupted TD often won't know it, since it looks at the
APP in 'chunks,' not individual outline items. (Which is why there are often
unknown run-time errors that are never caught during design time; TD doesn't
'walk' on that code until it's running.)

And that's why saving in text/APT and reading in that text version is a good
way to 'flush' out any problems a binary/APP file may have, since with text
TD is forced to read in the outline, one line at a time, and rebuild the
entire structure representing your application in memory.

"the memory problems when opening big APT files" - XML won't do a thing for
that, I don't think. My description above is how an APT is read in; that would
be ditto for the outline in XML format; it still has to build the structure
in memory.

A much better question and comment to respond to you are:
-- What specifically are the 'memory problems' you mention?

-- Why on earth have a 23 meg file?!? There are lots of ways to reduce that
size: put code chunks in APD files, put code chunks in separate APL files,
and if all your code is in text format, your will be much smaller.

Unless you put lots of stuff in APD files, read-in time could still be long,
but unless your application is so *large* that 23meg is over the top and
your PC can't handle that, memory 'problems' shouldn't exist.

And if memory still is a problem, then maybe it's time to divide your appl.
up into multiple, separate EXEs and run your program that way.

Best Regards,
Jeff @ PC Design


GTD XML Outline

Post by Yoda » 15 Mar 2007, 08:28

 Posted by:  Yoda 

If anything, that will increase memory issues.
Try the 6000 page XML specs for MS Office :-).

Saving as XML offers little benefits as far as memory goes.
Its meant for data exchange and if there were a lot
of client/third party applications that read directly from the
stored Gupta file, saving in XML would make sense


Thomas Lauzi

GTD XML Outline

Post by Thomas Lauzi » 15 Mar 2007, 09:38

 Posted by:  Thomas Lauzi 

>IMHO I think this could solve the memory problems when opening big
> APT files (for instance 23 MB like in my case).
IMHO there is nothing more memory wasteful than XML!!!!!!

Try to open a big XML file with internet explorer and you´ll see what
In memory a DOM tree is build out of the XML which needs plenty of memory.
The onliest way for big file would be SAX.
I had to parse XML files which are 7.5 MB big -> opening with internet
explorer carches up to 400 MB of memory.
Even XMLSpy eat up memory like hell.

Thomas L.

Dave Rabelink
Founder/Site Admin
Founder/Site Admin
Posts: 2869
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands

GTD XML Outline

Post by Dave Rabelink » 16 Mar 2007, 20:53

 Posted by:  Dave Rabelink 

Instead of searching a way to store such large sources into other
formats it is better to redesign your application. There is no way a
24MB source file is designed efficiently.

Component development is the key here !


Posts: 195
Joined: 02 Oct 2018, 17:35
Location: San Pedro Sula, Honduras

GTD XML Outline

Post by czavala » 17 Mar 2007, 23:24

 Posted by:  Conrado ZAVALA 

Thank You all for replying.



Return to “gupta.wishlist”

Who is online

Users browsing this forum: [Ccbot] and 0 guests