From a6ffab3e7f13443aebb0e5946f2fea01f4addc9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Charybdis=29?= Date: Wed, 14 May 2014 15:54:15 +0200 Subject: [PATCH] Save empty dates and dseries objects in memory (base workspace) instead of disk (faster). Added an initialization mode for dates and dseries constructor. The following commands: dates('initialization'); dseries('initialization'); create variables emptydatesobject and emptydseriesobject in base workspace. --- ModFile.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ModFile.cc b/ModFile.cc index 369f46b9..89161214 100644 --- a/ModFile.cc +++ b/ModFile.cc @@ -554,6 +554,10 @@ ModFile::writeOutputFiles(const string &basename, bool clear_all, bool no_log, b mOutputFile << "clear all" << endl; mOutputFile << "tic;" << endl + << "% Save empty dates and dseries objects in memory." << endl + << "dates('initialize');" << endl + << "dseries('initialize');" << endl + << "% Define global variables." << endl << "global M_ oo_ options_ ys0_ ex0_ estimation_info" << endl << "options_ = [];" << endl << "M_.fname = '" << basename << "';" << endl