主权项 |
1. A method of providing a list of entities, comprising:
obtaining, at a server, a list of entities responsive to a request from a client, each entity in the list including a set of attribute name-value pairs; recursively dividing the list of entities into subgroups based on an attribute name in the set until each entity in the corresponding subgroup has the same attribute name-value pairs; for each division resulting in a plurality of subgroups including one or more entities, assigning a subgroup number to each of the corresponding entity's attribute names by which the division is based, each entity in a common subgroup of the plurality of subgroups having the same subgroup number; generating, at a parser, a logical message tree of entities, an order of the entities in the logical message tree being based on the assigned subgroup numbers; sorting the list of entities based on the order of the entities in the logical message tree; serializing the sorted list of entities into a data stream; transmitting the entities in the sorted order over a network to the client; and transmitting a list of subgroup numbers to the client, the list of subgroup numbers being based on the assigning. |