Runtime Efficiency

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

CharlieEVIEWS
Posts: 202
Joined: Tue Jul 17, 2012 9:47 am

Re: Runtime Efficiency

Postby CharlieEVIEWS » Sun Jul 27, 2014 7:36 am

I've finished optimizing the program, but I have a question which relates directly to your above comment and the initial question at the start of the thread. If the workfiles are going to end up being extremely large, isn't it better to delete objects as the program progresses? Intuitively I feel that it's expensive for the software to have to alphabetically sort every object to place any newly created objects if the number of existing objects is extremely large. Is the tradeoff in efficiency from having to delete a large number (of the now superfluous) objects as we go worth the 'sorting' time at the creation of each new object? Is it an empirical matter, with the answere a function of the workfile size?

Best wishes, and thanks as always

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: Runtime Efficiency

Postby EViews Gareth » Sun Jul 27, 2014 7:25 pm

It is hard to answer. It might be, it might not be.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests