XML compression

I have a client server application that sends XML via TCP / IP from a client to a server, and then passes it to other clients. As I know, what is the minimum size of XML that could guarantee improved performance by compressing XML, and not for sending on a regular stream.

Are there any good indicators on this or examples?

+3
source share
5 answers

Xml usually compresses very well, as it tends to repeat a lot.

Another option is to exchange files in binary format; BinaryFormatter or NetDataContractSerializer are simple parameters, but both of them, as you know, are incompatible (for example, with java) compared to xml.

, " " Google. .NET/#, protobuf-net. .NET(, XmlSerializer/DataContractSerializer), , xml, (CPU ..) .

XmlSerializer, DataContractSerializer protobuf-net; , / , , , ...

[update] - QuickStart TCP/IP.

+2

- , , nitpicking.

- , , , ( ).

, , .

+1

.

- .

0

, - , , .

, .

0

, , , .

, , XML ( > 10 ) , .NET. ( -, , !) , XML Microsoft XML XML ( , > 1 ). XML, GZIP , . websphere, Linux, XML, gzip . , 50 , ( 10 20 ), , 50% CPU. XML, , (, /cpu time) , .net gui, , , Microsoft XML. , , .

- 50 10 . .

( , , - , , CPU), , / gzip. .

: XML , 50% ( XML , ). , , , , .

0
source

Source: https://habr.com/ru/post/1698706/


All Articles