user3685285
user3685285

Reputation: 6606

What is the difference between memory mapped persisted files and binary serialized files?

I have a process that collects information all day and stores the data in a flat file database via binary serialization. I've heard about memory mapped files, and I wonder if I can make use of this. But I don't really understand the fundamental difference between the two. Are they essentially the same thing?

Upvotes: 1

Views: 267

Answers (1)

usr
usr

Reputation: 171206

The two things are unrelated. There is no difference to be explained. Memory mapped files are about doing IO. Serialization is about the data format.

You can do IO through memory mappings or through IO functions.

You can use all kinds of data formats.

These things are independent.

Upvotes: 3

Related Questions