Method, device and computer-readable storage medium for merging interfaces

A computer program and interface technology, applied in the field of computer-readable storage media and interface merging, can solve the problems of inability to further improve application running speed, time-consuming, and inability to optimize interface performance, so as to avoid the short-board effect of interface merging and improve the The effect of running speed and improving user experience

Active Publication Date: 2021-08-24
NUBIA TECHNOLOGY CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] In order to solve the existing technology, the interface merging scheme has a short board effect, that is, the call time of a certain interface is longer, which will lead to a longer time-consuming call for the merge call, and it is impossible to optimize the performance of the interface merging more reasonably. To further improve the technical defects of the running speed of the application, the present invention proposes a method for merging interfaces, which includes:

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method, device and computer-readable storage medium for merging interfaces
  • Method, device and computer-readable storage medium for merging interfaces
  • Method, device and computer-readable storage medium for merging interfaces

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0083] image 3 It is a flow chart of the first embodiment of the interface merging method of the present invention. A method for merging interfaces, the method comprising:

[0084] S1. Monitor the time-consuming threshold of server-side interface calls;

[0085] S2. It is determined that the time-consuming threshold is lower than the time-consuming threshold, and the return value of the interface is different from the local cache of the client, then increasing the return priority of the return value;

[0086] S3. It is determined that the time-consuming threshold is higher than the time-consuming threshold, and the return value of the interface is the same as the local cache of the client, and then the server sends the return value to the client through message push.

[0087] In this embodiment, first, monitor the time-consuming threshold of the server-side interface call, and then determine that the time-consuming threshold is lower than the time-consuming threshold, and t...

Embodiment 2

[0106] Figure 4 It is a flow chart of the second embodiment of the interface merging method of the present invention. Based on the above embodiment, the time-consuming threshold for monitoring server-side interface calls includes:

[0107] S11. Setting a local cache on the client;

[0108] S12. Perform cache processing on the return value of the interface through the local cache;

[0109] S13. Record the version identifier cached on the server side.

[0110] In this embodiment, firstly, a local cache is set on the client, then the return value of the interface is cached through the local cache, and finally, the version identifier of the cache on the server is recorded.

[0111] Specifically, in this embodiment, the mechanism of local cache of the interface is implemented in the mobile phone client, and each interface call will cache the interface return value in the mobile phone disk, and generate the MD5 identifier of the return value, so as to identify the return value T...

Embodiment 3

[0122] Figure 5 It is a flow chart of the third embodiment of the interface merging method of the present invention. Based on the above embodiment, the time-consuming threshold for monitoring server-side interface calls also includes:

[0123] S14. Setting a central control component on the client;

[0124]S15. Receive the interface return value push message of the server through the central control component;

[0125] S16. Analyze the return value of the interface through the central control component, and transmit it to a corresponding interface for response.

[0126] In this embodiment, firstly, a central control component is set on the client, then, the interface return value push message of the server is received through the central control component, and finally, the interface return value is parsed through the central control component. value and send it to the corresponding interface for response.

[0127] In this embodiment, a unified central control component is ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses an interface merging method, equipment, and computer-readable storage medium, wherein the method includes: monitoring the time-consuming threshold of the server-side interface call; determining that it is lower than the time-consuming threshold, and the return value of the interface Different from the local cache of the client, the return priority of the return value is increased; if it is determined that it is higher than the time-consuming threshold, and the return value of the interface is the same as the local cache of the client, then the message is pushed on the server side Send the return value to the client. An efficient interface merging scheme is implemented. This scheme combines the call time-consuming threshold to quickly return the short-time-consuming interface, avoiding the short-board effect of interface merging, and further improving the call speed of interface merging, thereby improving the running speed of the application , to continuously improve user experience.

Description

technical field [0001] The invention relates to the field of mobile communication, in particular to an interface merging method, device and computer-readable storage medium. Background technique [0002] In the prior art, in order to improve the running speed of the application, the interfaces whose invoking times are adjacent are combined during the running of the application, and the server combines the return values ​​of the interfaces and returns them to the client. [0003] During the merging process, only the call time of the interfaces is adjacent to each other. After receiving the interface merging request, the server needs to wait until the return values ​​of all interfaces are generated before returning the values ​​to the client. For example, when merging requests for three interfaces are called separately, the time-consuming is 10 milliseconds, 50 milliseconds and 3 seconds respectively. But after merging, the time-consuming becomes greater than 3 seconds. [0...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F11/34
CPCG06F11/3423G06F11/3466
Inventor 倪秉炬
Owner NUBIA TECHNOLOGY CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products