The invention provides an atomization multi-resource
data transmission optimization method.
Metadata and a dependency relationship of the atomized resources are obtained by scanning project source codes, a
resource dependency graph is constructed, and logic association and a hierarchical structure among the resources are accurately described; intelligent clustering and grouping are carried out based on the atlas in combination with
resource use frequencies, and high-frequency co-occurrence and functional
coupling resources are divided into the same resource group, so that the subjectivity and redundancy problems are avoided; the resource group is packaged into the set
package file, and the
list file is generated, so that aggregation packaging of the atomized resources is realized, and the integrity of resource delivery is ensured; in the application stage,
client requests are intercepted, and corresponding set packages are loaded based on
list file matching, so that the actual network request times are reduced, and the head overhead and the head-of-
queue blocking risk are reduced. Therefore, not only is the performance
bottleneck caused by a large number of small file requests solved, but also the on-demand loading and caching efficiency of the resources is guaranteed through a dynamic grouping mechanism, and the flexibility and execution efficiency of front-end resource transmission are fundamentally improved.