基于JSON的Ajax数据通信快速算法  被引量:25

A FAST ALGORITHM FOR JSON-BASED AJAX DATA COMMUNICATION

在线阅读下载全文

作  者:孙光明[1,2] 王硕 

机构地区:[1]河北交通学院网络教研室,河北石家庄050035 [2]北京交通大学计算机与信息技术学院,北京100004

出  处:《计算机应用与软件》2015年第1期263-266,共4页Computer Applications and Software

基  金:河北省高等学校科学研究计划青年基金项目(Q2012110)

摘  要:针对Ajax采用XML作为数据载体存在标签大量冗余、基于DOM解析复杂导致数据传输量大、服务器与客户端解析效率低的问题,提出一种基于JSON的Ajax数据通信快速算法。分析服务器端应答Ajax引擎请求数据的结构,设计有限状态机模型实现应答数据集转换为JSON格式的方法,提高了Ajax数据传输和解析的效率。实验结果表明,该算法较以XML为数据载体的通信速度更快,解析效率更高,具有更好的用户体验度。Aiming at the problems of Ajax that it has a large number of redundant tags when using XML as data carrier, a large amount of data transmission caused by DOM-based complex parsing, and low data parsing efficiency in server and client, we present a JSON-based fast algorithm for Ajax data communication. The paper analyses the structure of server response data in regard to Ajax engine request, designs an approach of finite state machine model which converses the response dataset to JSON format, improves the efficiency of Ajax data transmission and parsing. Experimental results show that compared with using XML as data carrier, this method is faster in communication speed, more efficient in parsing and has better user experience.

关 键 词:JSON Ajax数据通信 有限状态机 快速算法 

分 类 号:TP311.52[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象