Method, device, and computer-readable storage medium for interface request protocol modification

An interface and protocol technology, which is applied in the field of interface request protocol transformation and computer-readable storage media, can solve problems such as inability to optimize interface performance, time-consuming, and inability to further improve application running speed, so as to avoid short board effect and improve operation Speed, improve user experience effect

Active Publication Date: 2021-11-19
NUBIA TECHNOLOGY CO LTD
View PDF6 Cites 0 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
  • Method, device, and computer-readable storage medium for interface request protocol modification
  • Method, device, and computer-readable storage medium for interface request protocol modification
  • Method, device, and computer-readable storage medium for interface request protocol modification

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 a method, device and computer-readable storage medium for modifying an interface request protocol, wherein the method includes: caching the return value of the interface call on the terminal side; The version number of the return value; receive and respond to the push data from the server. An efficient interface request protocol transformation scheme has been implemented. This scheme avoids the short-board effect of interface merging by transforming the underlying mechanism of the protocol for merging interface requests and the interface request mechanism on the terminal side, and further improves the calling speed of interface merging. Thereby improving the running speed of the application 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 transformation. 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 pe...

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): 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 Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products