{"title":"估计Java对象的XML序列化的成本","authors":"Gábor Imre, H. Charaf, L. Lengyel","doi":"10.1109/ECBS-EERC.2013.13","DOIUrl":null,"url":null,"abstract":"XML is a frequently applied data representation format to support the communication between software systems even if they are on different platforms. The process of transforming an in-memory object instance into bytes of an XML document is called XML serialization, the opposite direction is XML deserialization. Both processes introduce some cost that influences the overhead of the communication. This paper proposes a performance model that can estimate the cost of XML serialization and deserialization on Java platform based on a priori knowledge of the type and size of the XML messages. Type and size information of the XML messages is usually available in the form of an interface definition, such as a Web Services Description Language (WSDL) file. We show that in most cases the cost can be expressed as a linear function of the object size, but exceptions are discussed as well. The suggested model is validated with measurements.","PeriodicalId":314029,"journal":{"name":"2013 3rd Eastern European Regional Conference on the Engineering of Computer Based Systems","volume":null,"pages":null},"PeriodicalIF":0.0000,"publicationDate":"2013-08-29","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"3","resultStr":"{\"title\":\"Estimating the Cost of XML Serialization of Java Objects\",\"authors\":\"Gábor Imre, H. Charaf, L. Lengyel\",\"doi\":\"10.1109/ECBS-EERC.2013.13\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"XML is a frequently applied data representation format to support the communication between software systems even if they are on different platforms. The process of transforming an in-memory object instance into bytes of an XML document is called XML serialization, the opposite direction is XML deserialization. Both processes introduce some cost that influences the overhead of the communication. This paper proposes a performance model that can estimate the cost of XML serialization and deserialization on Java platform based on a priori knowledge of the type and size of the XML messages. Type and size information of the XML messages is usually available in the form of an interface definition, such as a Web Services Description Language (WSDL) file. We show that in most cases the cost can be expressed as a linear function of the object size, but exceptions are discussed as well. The suggested model is validated with measurements.\",\"PeriodicalId\":314029,\"journal\":{\"name\":\"2013 3rd Eastern European Regional Conference on the Engineering of Computer Based Systems\",\"volume\":null,\"pages\":null},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2013-08-29\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"3\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"2013 3rd Eastern European Regional Conference on the Engineering of Computer Based Systems\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1109/ECBS-EERC.2013.13\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"2013 3rd Eastern European Regional Conference on the Engineering of Computer Based Systems","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ECBS-EERC.2013.13","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
Estimating the Cost of XML Serialization of Java Objects
XML is a frequently applied data representation format to support the communication between software systems even if they are on different platforms. The process of transforming an in-memory object instance into bytes of an XML document is called XML serialization, the opposite direction is XML deserialization. Both processes introduce some cost that influences the overhead of the communication. This paper proposes a performance model that can estimate the cost of XML serialization and deserialization on Java platform based on a priori knowledge of the type and size of the XML messages. Type and size information of the XML messages is usually available in the form of an interface definition, such as a Web Services Description Language (WSDL) file. We show that in most cases the cost can be expressed as a linear function of the object size, but exceptions are discussed as well. The suggested model is validated with measurements.