R
Richard Bos
Akyl Tulegenov said:I've got a question which is rather system specific case.
Quite. So why post it here? We can't answer your question.
Suppose I am dealing with a large array of ~4Gig of entities.
The question is : what is faster , to address it through a binary file
created on disk or using dynamic memory which is extended through a large
swap file (again on disk)? Note that swap file is created at the
point of the disk partition.
Who knows? Measure, measure, measure. This depends not only on the OS,
the compiler, and the technique used to map the dynamic memory, but
probably also on the relative speeds of the swap disk and the normal FS,
and several others. Measure, and then assume your measurements are
correct for you and nobody else.
I would be grateful if in addition to your comments you could point me to
the relevant source (URL or else).
"The" relevant source? I don't think you quite understand this "system
specific" idea. There must be hundreds of relevant sources. Do a web
search; _you_ know what's inside your system, we don't.
Richard