CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Programming & Development

Is the full text of an IOdictionary stored in RAM for the life of the object?

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   November 3, 2015, 12:46
Default Is the full text of an IOdictionary stored in RAM for the life of the object?
Join Date: Aug 2015
Posts: 35
Rep Power: 3
knuckles is on a distinguished road
Sponsored Links
I was mucking around in source files recently and I got the impression that IOdictionaries may be read into RAM once, at creation (assuming that the source dictionary file isn't changed during execution), and that all subsequent lookup operations are performed by parsing data from RAM, rather than disk. I didn't dig deep enough to be sure - can anyone confirm or deny this? I'm particularly curious whether this means that the full text of the dictionary is stored in RAM for the life of the object.

I'm concerned because I'm using a custom dictionary to store tabulated model data. The data file is about 300 MB in ASCII format - if this text is being held in RAM for the duration of my program, even after it's been parsed and the data has been read into a program-usable format, then this is a big waste.
knuckles is offline   Reply With Quote
Sponsored Links



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error compiling OpenFOAM-1.6-ext Canesin OpenFOAM Installation 137 January 20, 2016 15:56
engineFoam with layers - pressure problems when adding layers mturcios777 OpenFOAM Running, Solving & CFD 22 October 17, 2013 02:52
Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 keepfit OpenFOAM Paraview & paraFoam 60 September 18, 2013 03:23
Compilation error OF1.5-dev on Suse10.3 darenyang OpenFOAM Installation 0 April 29, 2009 04:55
BlockMeshmergePatchPairs hjasak OpenFOAM Native Meshers: blockMesh 11 August 15, 2008 07:36

Sponsored Links

All times are GMT -4. The time now is 05:10.