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

Interface request protocol improving method, equipment and computer readable storage medium

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

Active Publication Date: 2018-07-13
NUBIA TECHNOLOGY CO LTD
View PDF6 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In order to solve the problem in the existing technology, the interface merging scheme has a short-board effect, that is, a long call time of an interface will lead to a long time-consuming call for the merging 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 modifying the interface request protocol, the method comprising:

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 request protocol improving method, equipment and computer readable storage medium
  • Interface request protocol improving method, equipment and computer readable storage medium
  • Interface request protocol improving method, equipment and computer readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0078] image 3 It is a flow chart of the first embodiment of the interface request protocol transformation method of the present invention. A method for modifying an interface request protocol, the method comprising:

[0079] S1. Cache the return value of the interface call on the terminal side;

[0080] S2. In the merge request of the interface, add the version number of the return value corresponding to the interface;

[0081] S3. Receive and respond to the push data from the server, wherein the interface return value of the server is consistent with the version number.

[0082] In this embodiment, firstly, the return value of the interface call on the terminal side is cached, then, in the merge request of the interface, the version number of the return value corresponding to the interface is added, and finally, the push data of the server side is received and responded , wherein the return value of the server-side interface is consistent with the version number.

[008...

Embodiment 2

[0102] Figure 4 It is a flow chart of the second embodiment of the interface request protocol modification method of the present invention. Based on the above embodiment, the return value of the interface call on the cache terminal side includes:

[0103] S11. Transforming the request mechanism of the terminal side to the merging interface;

[0104] S12. Generate a corresponding number of threads according to the number of merged interfaces;

[0105] S13. Wait for the return value through the thread.

[0106] In this embodiment, firstly, the request mechanism for the merging interface on the terminal side is modified, then a corresponding number of threads is generated according to the number of merging interfaces, and finally, the return value is waited for through the threads.

[0107] As mentioned in the above example, the mobile phone side caches the return value of the interface call, and the version number of the current local cache value of each interface will also b...

Embodiment 3

[0114] Figure 5 It is a flow chart of the third embodiment of the interface request protocol transformation method of the present invention. Based on the above embodiment, the version number of the return value corresponding to the interface added to the merge request of the interface includes:

[0115] S21. On the server side, add a number value and a count value of interfaces to the protocol of the merge request, wherein the communication link is maintained within the number number;

[0116] S22. On the terminal side, generate a corresponding number of threads according to the number of merged interfaces, and wait for the return value through the threads.

[0117] In this embodiment, firstly, on the server side, add the number value and count value of the interface in the protocol of the merge request, wherein the communication link is maintained within the number value, and then, at the terminal On the side, generate a corresponding number of threads according to the number...

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 request protocol improving method, equipment and a computer readable storage medium. The method comprises the steps of caching a returning value for a terminal side to call interfaces; adding a version number of the returning value corresponding to the interfaces in a merging request of the interfaces; receiving and responding to pushing data of a server side.An efficient interface request protocol improving scheme is implemented, by improving and merging protocol bottom layer mechanisms of the interface request and interface request mechanisms at the terminal side, the occurrence of an interface merging cast effect is avoided, the calling speed of interface merging is further increased, and thus the running speed of an application is improved to continuously improve the user experience.

Description

technical field [0001] The invention relates to the field of mobile communication, in particular to a method, equipment and computer-readable storage medium for interface request protocol modification. 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. 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. [0003] However, the problem with the above solution is: there is a short board effect, that is, a long call time of an interface will lead to a long time-consuming merge call, and it is impossible to optimize the perf...

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): G06F9/54
CPCG06F9/542G06F9/547G06F2209/541G06F2209/549
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