...
首页> 外文期刊>Earth Science Informatics >When is it sensible not to use XML?
【24h】

When is it sensible not to use XML?

机译:什么时候不使用XML?

获取原文
获取原文并翻译 | 示例
           

摘要

This paper considers the problem of comparing the read time for a file containing an array of one-half million one-byte data values using a direct read time with the time required to read an equivalent XML file. The XML file uses a variable-length string encoding of the identifiers associated with each of the byte values. The XML file is about 180 times larger than the original file of byte values. Because the XML file is much larger and because the XML parsing requires substantially more computational work, reading the XML file on a Windows-based PC takes about 3,700 times longer than the direct read. The experimental study shows that the XML read time increases linearly with the size of the file. Given the increased read time and the increased probability of programming errors for the XML encoding, it appears that in cases where data archives are providing simple binary or text files of data that may be readily understood and read with short programs, then XML may not be an optimal choice for serving users or for preserving data.
机译:本文考虑了使用直接读取时间将包含一半半个一字节数据值的文件的读取时间与读取等效XML文件所需的时间进行比较的问题。 XML文件使用与每个字节值关联的标识符的可变长度字符串编码。 XML文件比字节值的原始文件大180倍。由于XML文件更大,并且XML解析需要大量的计算工作,因此在基于Windows的PC上读取XML文件所花费的时间比直接读取大约长3700倍。实验研究表明,XML读取时间随文件大小线性增加。考虑到XML编码的读取时间增加和编程错误的可能性增加,因此,在数据档案库提供简单的数据二进制文件或文本文件(可以通过短程序轻松理解和读取)的情况下,XML可能不会服务用户或保留数据的最佳选择。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号