Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

memory management in swi prolog
I test the performance of queries on UML models and compare it to a Java
implementation.
Therefore I iteratively execute the same queries on growing models
(10,100,1000,... classes) which are imported in XML format. Doing so for
different queries the sgml_parser aborts at different model sizes for
different queries when executing sgml:free_sgml_parser.
Therefore I have a question concerning that: is there a command to
explicitly emtpy all stacks (and other memories ?) before I start
parsing my XML file or some other possibility to clear up memory because
it seems that for different queries the stack is filled differently and
not emptied before parsing the next model.

thanks in advance,
Michael Felderer

Report this thread to moderator Post Follow-up to this message
Old Post
Michael Felderer
08-23-07 09:19 AM


Re: memory management in swi prolog
On 2007-08-23, Michael Felderer <michael.felderer@uibk.ac.at> wrote:
> I test the performance of queries on UML models and compare it to a Java
> implementation.
> Therefore I iteratively execute the same queries on growing models
> (10,100,1000,... classes) which are imported in XML format. Doing so for
> different queries the sgml_parser aborts at different model sizes for
> different queries when executing sgml:free_sgml_parser.

If it aborts in free_sgml_parser there is something wrong.  Probably it
traps the debugger and free_sgml_parser is the first thing it executes.

> Therefore I have a question concerning that: is there a command to
> explicitly emtpy all stacks (and other memories ?) before I start
> parsing my XML file or some other possibility to clear up memory because
> it seems that for different queries the stack is filled differently and
> not emptied before parsing the next model.

The simplest way is to run the tests using a failure driven loop.  I
suspect there may be an issue that GC is not activated while parsing
an XML document.  I'll put that on the TODO list, but using a failure
driven loop your experiment should be fine.

Cheers --- Jan

Report this thread to moderator Post Follow-up to this message
Old Post
Jan Wielemaker
08-24-07 03:10 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Prolog archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 04:57 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.