Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and storage medium for improving interface access efficiency

An interface access and interface technology, applied in the direction of bootloader, program control device, etc., can solve the problems of slow application startup process and affect user experience, and achieve the effect of improving cache speed, reducing time consumption, and improving access efficiency.

Active Publication Date: 2022-07-26
FUJIAN TIANQUAN EDUCATION TECH LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

And these interface calls must be made. Each interface call needs to make an http request. In this way, after the client application is started, there will be multiple http interface calls. If the number is large, it will cause The application startup process is relatively slow, which affects the user experience

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 and storage medium for improving interface access efficiency
  • Method and storage medium for improving interface access efficiency
  • Method and storage medium for improving interface access efficiency

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0054] Please refer to figure 2 , the first embodiment of the present invention is:

[0055] A method for improving the efficiency of interface access, including:

[0056] S1: Sort and classify each interface that needs to be called when the application starts, and divide it into a cached interface and a non-cached interface.

[0057] The cached interface is some configuration information or information that has already been cached; the non-cached interface is an interface that requires real-time query and business processing.

[0058] S2: Obtain each non-cached interface, and set the priority of each non-cached interface according to the calling sequence when the application is started.

[0059] S3: When the application is started, a UDP packet storing the parameter information of each non-cached interface is sent to the server in advance.

[0060] Among them, the UDP information packet carries parameter information that may need to be used by all non-cached interfaces, s...

Embodiment 2

[0075] This embodiment provides a specific application scenario based on Embodiment 1:

[0076] Assume that when an APP application starts, it will call three interfaces, one is the interface to obtain whether to upgrade; the other is the interface to obtain personalized information according to deviceId (referred to as interface B); the other is to obtain the unique code according to the unique code automatically generated by the application. The interface of the application's secret key and other information (referred to as interface A).

[0077] Among them, whether to upgrade the interface is judged by the upgrade version number. The version number is cached in the server cache, so the interface is a cached interface; the other two (interface A and interface B) need to obtain personalized information according to the parameters. Server-side caching is not possible, so it is a non-cached interface. The A interface has a higher priority.

[0078] When the application starts...

Embodiment 3

[0081] This embodiment corresponds to Embodiment 1 and Embodiment 2, and provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the program can implement the above-mentioned Embodiment 1 or Embodiment 2. All steps included in a method to improve the efficiency of interface access. The specific steps will not be repeated here. For details, please refer to the description of the first embodiment or the second embodiment.

[0082] In summary, the present invention provides a method and storage medium for improving interface access efficiency; it not only greatly reduces the time consuming of http requests, but also improves interface access efficiency, thereby significantly improving application startup speed; and can ensure the validity of request result data. further, it can also reduce the occupation of memory resources as much as possible. Thus, the overall solution of the present invention is more prac...

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 present invention provides a method and a storage medium for improving interface access efficiency. The method includes: acquiring each non-cached interface to be called when an application starts; when the application is started, sending a parameter information storing the each non-cached interface The UDP information packet is sent to the server; the server calls the non-cached interfaces one by one according to the UDP information packet, and caches the results. The invention can reduce the time-consuming of http request and improve the application startup efficiency.

Description

technical field [0001] The invention relates to the field of interface access, in particular to a method and a storage medium for improving interface access efficiency. Background technique [0002] In the current interaction scenario between the APP client and the server, there will be a lot of information interaction. Among them, each time the APP is started, a series of initialization actions need to be performed. Among them, the interface call for initializing the configuration information is required to obtain the configuration information; the interface for version upgrade is required to determine whether the upgrade is required, or other interface calls, such as the interface for business judgment or data acquisition. And these interface calls must be made. Each interface call needs to make an http request. In this way, after starting the client application, there will be multiple http interface calls. If the number is large, it will lead to The application startup p...

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/4401
CPCG06F9/4401
Inventor 刘德建林伟郭玉湖陈宏
Owner FUJIAN TIANQUAN EDUCATION TECH LTD