.net - Using Mapped Memory Files in C# to store reference types -
i need store dictionary file fast possible. both key , value objects , not guaranteed marked serializable. prefer method faster serializing thousands of objects. looked mapped memory files support in .net 4. however, seems memorymappedviewaccessor allows storage of structs , not reference types.
is there way of storing memory used reference type of file , reconstructing object blob of memory (without binary serialization)?
memory mapped files fundamentally incompatible garbage collector. why took long such principal operating system feature supported .net. reference types need serialized mmf view, memorymappedviewstream, no way around that. similar restriction exists in unmanaged code, objects pointers need flattened pointed-to objects visible in view well.
whether serialize them mmf or file won't make difference, file system cache implemented mmfs well. file writes very fast, long written data fits in available mappable memory. if that's issue @ 64-bit operating system solve problem.
Comments
Post a Comment