Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Interface combination method and device, and computer readable storage medium

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

Active Publication Date: 2018-07-20
NUBIA TECHNOLOGY CO LTD
View PDF6 Cites 2 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
  • Interface combination method and device, and computer readable storage medium
  • Interface combination method and device, and computer readable storage medium
  • Interface combination method and device, and computer readable storage medium

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 combination method and device, and a computer readable storage medium. The method comprises the steps of monitoring a time consumption threshold called by an interface of a server; when it is determined that time consumption is lower than the time consumption threshold and a return value of the interface is different from a local cache of a client, increasing areturn priority of the return value; and when it is determined that the time consumption is higher than the time consumption threshold and the return value of the interface is the same as the local cache of the client, sending the return value to the client through message pushing in the server. An efficient interface combination scheme is realized. According to the scheme, the interface with lowtime consumption is quickly returned in combination with the called time consumption threshold, so that the cask effect of interface combination is avoided, the calling speed of interface combinationis further increased, the running speed of an application is increased, and the user experience is continuously improved.

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 Applications(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 Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products