自定义序列化&字节数组 [英] Custom serialization & byte arrays
问题描述
我正在从另一个缓存解决方案转向专门处理通过自定义序列化生成的byte []对象。如果我将一个普通的旧字节数组放入AppFabric缓存中,是否有处理开销?它只是插入字节数组
还是尝试序列化它? (反之亦然,用于缓存检索和反序列化)。
I'm moving from another caching solution that deals exclusively with byte[] objects generated via custom serialization. If I place a plain old byte array into the AppFabric cache is there any overhead in processing? Is it simply inserting the byte array or does it attempt to serialize it? (and vice-versa for cache retrieval and deserialization).
推荐答案
此论坛上有一个早期的线程描述了NetDataContract序列化程序的正常使用方式,但字节数组按原样运行。
There is an earlier thread on this forum that describes how normally the NetDataContract serializer is used, but byte arrays go through as-is.
Scott Colestock
Scott Colestock
这篇关于自定义序列化&字节数组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!