摘要
针对传统数据存储信息序列化效率不佳,数据完整性较差,效率较低等问题,本文引入PROTOBUF技术,对数据存储信息序列化进行研究。采用蛇形间隙法完成序列节点的分配间隔,使工作状态与休息状态始终保持动态平衡;根据最先级规则获取完成目标节点的存储数据,分析语法结构及目标数据语义,建立对应的立映射关,完成数据存储的信息序列化。为验证PROTOBUF的数据存储信息序列化方法的有效性,设计对比试验。仿真数据表明,PROTOBUF序列化方法转化时间短、空间利用率高,正确率和完整性都具有明显优势。非常适合在带宽受限的情况下对于JSON数据的序列化。
Aiming at the problems of poor serialization efficiency of traditional data storage information, poor data integrity, and low efficiency, this article introduces PROTOBUF technology to study the serialization of data storage information.The serpentine gap method is used to complete the allocation interval of the sequence nodes, so that the working state and the resting state always maintain a dynamic balance.According to the first-level rules, the storage data of the completed target node is obtained, the grammatical structure and the semantics of the target data are analyzed, corresponding correspondences are established, and the data storage information is serialized.In order to verify the effectiveness of PROTOBUF’s data storage information serialization method, a comparative experiment is designed.The simulation data shows that the PROTOBUF serialization method has short conversion time, high space utilization, and correctness and integrity have obvious advantages.Very suitable for serialization of JSON data in the case of limited bandwidth.
作者
黄斌
谢艳新
唐友
李颜甲
HUANGBin;XIE Yan-xin;TANG You;LI Yan-jia(Jilin Agricultural Science and Technology University,Electrical and Information Engineering College,Jilin Jilin,243000,China;College of Science Beihua University,Jilin Jilin,243000,China)
出处
《计算机仿真》
北大核心
2020年第4期159-163,共5页
Computer Simulation