CN112612611A - Information processing method, device and system - Google Patents

Information processing method, device and system Download PDF

Info

Publication number
CN112612611A
CN112612611A CN202011554386.2A CN202011554386A CN112612611A CN 112612611 A CN112612611 A CN 112612611A CN 202011554386 A CN202011554386 A CN 202011554386A CN 112612611 A CN112612611 A CN 112612611A
Authority
CN
China
Prior art keywords
instance
target
resource package
target instance
instances
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011554386.2A
Other languages
Chinese (zh)
Inventor
刘丽娜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202011554386.2A priority Critical patent/CN112612611A/en
Publication of CN112612611A publication Critical patent/CN112612611A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/986Document structures and storage, e.g. HTML extensions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/504Resource capping

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Stored Programmes (AREA)

Abstract

The application relates to the technical field of front-end development and discloses an information processing method. By obtaining an instance use request carrying a target instance type, the target instance type requested to be used can be determined. And determining a target instance resource package matched with the target instance type from the created multiple instance resource packages, and directly calling the target instance from the target instance resource package when determining that the available instance exists in the target instance resource package. According to the scheme, the instance creation does not need to be carried out again when the instance is used, and the difficulty of the instance creation is reduced. In addition, for the scene needing to create the same type of example for many times, the creation times of the target example can be reduced, the memory consumption caused by repeatedly creating the same type of example is saved, and the product performance of the application program or the browser is optimized. The application also discloses an information processing device and system.

Description

Information processing method, device and system
Technical Field
The present application relates to the field of front-end development technologies, and for example, to a method, an apparatus, and a system for processing information.
Background
The front-end technology is generally divided into front-end design and front-end development, the front-end design can be generally understood as visual design of a website, the front-end development is the foreground code implementation of the website, and the front-end development comprises basic hypertext Markup language HTML (Hypertext Markup language), cascading Style sheets CSS (cascading Style sheet) and object-oriented dynamic client scripting language JavaScript. These three are the most basic three skills in front-end development. In the development of the front end, when the page is laid out, the HTML defines elements, the CSS positions the displayed elements, and then the corresponding effect and interaction are realized through JavaScript.
With the rapid development of mobile communication devices such as mobile phones and the like, the internet era of nationwide movement is opened, browsers and APPs (applications) facilitate the lives of everyone, and the mobile informatization process is accelerated. With the development of science and technology, the development of browsers and application software of mobile phones is more and more emphasized by the public, the performance requirements of users on the browsers and APPs are higher and higher, and developers need to further optimize the performance of the browsers and the APPs to attract more users.
Developers often encounter a scenario of creating instances of the same type for multiple times during browser or APP front-end development, and the repeated creation of the same type of instances causes memory loss to a certain extent, so that the performance of an application program is affected.
Disclosure of Invention
The following presents a simplified summary in order to provide a basic understanding of some aspects of the disclosed embodiments. This summary is not an extensive overview nor is intended to identify key/critical elements or to delineate the scope of such embodiments but rather as a prelude to the more detailed description that is presented later.
The embodiment of the disclosure provides an information processing method, device and system, which reduce memory loss caused by a large number of repeatedly created and released instances and avoid unnecessary resource waste.
In some embodiments, the method comprises: obtaining an instance use request carrying a target instance type; determining a target instance resource packet matched with the target instance type from the created multiple instance resource packets; and when the available instances exist in the target instance resource package, calling the target instances from the target instance resource package, wherein the target instances are one or more of the available instances.
In some embodiments, the instance resource package is configured with a first parameter representing the number of remaining instances and a second parameter representing the type of instances.
In some embodiments, the presence of an available instance in the target instance resource package is determined by: determining the number of the remaining examples in the target example resource package; and when the number of the remaining instances in the instance resource package is a positive number, determining that the available instances exist in the target instance resource package.
In some embodiments, when the number of instances in the target instance resource package is zero, it is determined that there are no available instances in the target instance resource package.
In some embodiments, upon determining that there are no available instances in the target instance resource package, a request to create an instance is sent to the target instance resource package.
In some embodiments, determining a target instance resource package that matches the target instance type among the plurality of instance resource packages comprises: and determining the instance type information of each instance resource packet according to the second parameters configured for each instance resource packet, matching the instance type information with the target instance type information, and determining the target instance resource packet.
In some embodiments, the method further comprises: obtaining the number of the remaining examples and the storage capacity of the target example resource package; and when the target instances are determined to be used completely and the number of the remaining instances is less than the storage capacity, storing the target instances into the target instance resource package.
In some embodiments, the apparatus comprises: an obtaining module configured to obtain an instance use request carrying a target instance type; a determining module configured to determine a target instance resource package matching the target instance type from the created plurality of instance resource packages; and the calling module is configured to call the target instance from the target instance resource package when the available instance exists in the target instance resource package.
In some embodiments, the apparatus comprises: a processor and a memory storing program instructions, the processor being configured to perform one of the aforementioned methods of information processing when executing the program instructions.
In some embodiments, the system comprises: an information processing apparatus is described.
The method, the device and the system for processing the information provided by the embodiment of the disclosure can realize the following technical effects: by obtaining an instance use request carrying a target instance type, the target instance type requested to be used can be determined. And determining a target instance resource package matched with the target instance type from the created multiple instance resource packages, and directly calling the target instance from the target instance resource package when determining that the available instance exists in the target instance resource package. According to the scheme, the instance creation does not need to be carried out again when the instance is used, and the difficulty of the instance creation is reduced. In addition, for the scene needing to create the same type of example for many times, the creation times of the target example can be reduced, the memory consumption caused by repeatedly creating the same type of example is saved, and the product performance of the application program or the browser is optimized.
The foregoing general description and the following description are exemplary and explanatory only and are not restrictive of the application.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the accompanying drawings and not in limitation thereof, in which elements having the same reference numeral designations are shown as like elements and not in limitation thereof, and wherein:
FIG. 1 is a schematic diagram of a method for processing information provided by an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of a method for storing a target instance into a target instance resource package according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of an information processing apparatus provided by an embodiment of the present disclosure;
fig. 4 is a schematic diagram of another information processing apparatus provided in the embodiment of the present disclosure.
Detailed Description
So that the manner in which the features and elements of the disclosed embodiments can be understood in detail, a more particular description of the disclosed embodiments, briefly summarized above, may be had by reference to the embodiments, some of which are illustrated in the appended drawings. In the following description of the technology, for purposes of explanation, numerous details are set forth in order to provide a thorough understanding of the disclosed embodiments. However, one or more embodiments may be practiced without these details. In other instances, well-known structures and devices may be shown in simplified form in order to simplify the drawing.
The terms "first," "second," and the like in the description and in the claims, and the above-described drawings of embodiments of the present disclosure, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the present disclosure described herein may be made. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions.
The term "plurality" means two or more unless otherwise specified.
In the embodiment of the present disclosure, the character "/" indicates that the preceding and following objects are in an or relationship. For example, A/B represents: a or B.
The term "and/or" is an associative relationship that describes objects, meaning that three relationships may exist. For example, a and/or B, represents: a or B, or A and B.
Fig. 1 is a schematic diagram of an information processing method provided by an embodiment of the present disclosure, and in conjunction with fig. 1, the embodiment of the present disclosure provides an information processing method, including:
and S11, obtaining the instance use request carrying the target instance type information.
S12, from the created multiple example resource packages, determining the target example resource package matched with the target example type.
S13, when available examples exist in the target example resource package, the target examples are called from the target example resource package, and the target examples are one or more of the available examples.
In step 11, the front end of the browser or the application program may obtain an instance use request sent by the mobile terminal associated with the user, where the request may carry at least target instance type information of a target instance to be called.
The front end, namely the foreground part of the browser or the application program, provided by the embodiment of the disclosure can run on the mobile terminal and is shown to the browsing side of the user. The mobile terminal may be a mobile device such as a mobile phone or a tablet computer associated with the user, which is capable of implementing network communication.
In particular, a user may send an instance use request to a browser or application front-end through an associated mobile terminal. In the scheme, the instances with different attributes can be created in advance according to the requirements of the user for the user to use. In an example, a parameter representing an instance type may be configured in the request in advance according to a requirement of the user, and the parameter is carried when the user sends the instance use request, so as to determine a target instance type requested to be used. And determining the target instance calling intention of the user according to the determined target instance type requested to be called. In another example, the number of instances may also be configured in the request in advance according to the requirement of the user, so as to determine the number of instances that the user needs to invoke. According to the scheme, the instance calling intention of the user can be determined through the instance using request, so that the memory loss caused by repeatedly creating the instance is reduced and the memory resource is saved through calling the instance.
In step 12, a target instance resource package matching the target instance type is determined from the created plurality of instance resource packages.
In the scheme, a plurality of different types of instance resource packages can be created in advance, an instance can be stored in each instance resource package, and a user can determine a target instance resource package according to target instance type information and directly call the instance when the user wants to use the instance. Alternatively, as an optimized solution, multiple instances of the same type may be stored in one instance resource package. Specifically, the storage capacity of the instance resource package and the instance type stored by the instance resource package can be created in advance according to the use habit of the user. For example, the number of instance resource packages and the type of instances stored by an instance resource package may be created based on how often the user uses the instance over a period of time. Further, among the plurality of optional instance resource packages, an instance resource package of the same type as the target instance is determined. That is, after creating a plurality of instance resource packages, parameters representing instance types of the plurality of created instance resource packages may be acquired, and the instance resource package that is the same as the parameters representing the target instance type may be determined as the target instance resource package. By the scheme, the target instance resource package which accords with the type of the target instance can be determined so as to be convenient for calling the target instance resource package, the calling accuracy of the target instance resource package is ensured, and convenience is brought to users to call at any time.
In step 13, after determining the target instance resource package, it can be determined whether there is an available instance in the target instance resource package, and when there is an available instance in the target instance resource package, the target instance is called from the target instance resource package, where the target instance is one or more of the available instances.
In the scheme, after the target instance resource packet is determined, whether an available instance exists in the target instance resource packet can be judged according to the size of the target instance resource packet. Wherein, the size of the target instance resource package refers to the actual volume of the resource package. For example: a resource packet itself has a size of 6 bytes, and the 6 bytes are referred to as the size of the resource packet. Specifically, when the size of the target instance resource packet is greater than 0 bytes, it is determined that there is an available instance for the resource packet. In the scheme, after determining that the target instance resource package has the available instance, the instance in the target instance resource package is called as the target instance.
Further, a volume of an instance in the target instance resource package may be determined, and the number of target instances stored in the target instance resource package may be determined according to the volume of the target instance resource package and the volume of an instance. And in the case that there are multiple available instances of the target instance resource package, calling any one instance as the target instance.
By adopting the information processing method provided by the embodiment of the disclosure, the target instance type requested to be used can be determined by obtaining the instance use request carrying the target instance type. And determining a target instance resource package matched with the target instance type from the created multiple instance resource packages, and directly calling the target instance from the target instance resource package when determining that the available instance exists in the target instance resource package. According to the scheme, the instance creation does not need to be carried out again when the instance is used, and the difficulty of the instance creation is reduced. In addition, for the scene needing to create the same type of example for many times, the creation times of the target example can be reduced, the memory consumption caused by repeatedly creating the same type of example is saved, and the product performance of the application program or the browser is optimized.
Optionally, in order to determine the remaining number of instances and the type of the instances stored in each instance resource package, the instance resource package provided in the embodiments of the present disclosure is configured with a first parameter indicating the remaining number of instances and a second parameter indicating the type of the instances.
In this scheme, when creating the instance resource package, the first parameter and the second parameter may be arrays. Wherein, the array belongs to the structure data type, and one array can be decomposed into a plurality of array elements. The array can be divided into a numerical array and a character array. The first parameter and the second parameter can be expressed by numerical arrays. In one example, the number of element bits of the array of values may be determined based on the number of remaining instances stored by the target instance resource package. The greater the number of instances stored by the target instance resource package, the greater the number of element bits representing the number of instances, accordingly. For example: if the number of instances stored in the target instance resource packet is 12, the number of element bits of the array representing the number of instances of the target instance resource packet is two, and at this time, 12 is the first parameter. In another example, the number of element bits of the array representing the first parameter may be preconfigured, and if the number of element bits of the array representing the first parameter is preset to be 4 bits and the number of instances stored in the target instance resource packet is 12, the first parameter is 0012.
In the process of creating multiple instance resource packages, classification labels can be performed on different types of instance resource packages, for example: one instance type is labeled 04, and the number of bits of the element of the array representing the instance type of the target instance resource packet is two, then the second parameter is 04. If the number of bits of the element of the array representing the second parameter is set to 4 bits in advance, the second parameter is 0004, and so on.
In addition, the arrangement sequence of the first parameter and the second parameter can be preset in advance according to the operation habit of a developer. That is, when the first parameter is 12 and the second parameter is 04, if the first parameter is preset to be before the second parameter, the array is shown as 1204 at this time. On the contrary, if the second parameter is preset before the first parameter, the array is represented as 0412 at this time. By the scheme, when the instance resource package is created, a first parameter representing the number of instances and a second parameter representing the types of the instances can be configured for the instance resource package to determine the types of the instances currently stored in the multiple instance resource packages and the number of the stored instances, so that the instance storage states of the multiple instance resource packages can be obtained, and a user can call the instances which the user wants to use.
Optionally, in the technical solution provided in the embodiment of the present disclosure, it may also be determined that there is an available instance in the target instance resource package by: determining the number of instances in the target instance resource package; when the number of instances in the instance resource package is a positive number, determining that there are available instances in the target instance resource package.
In the scheme, the number of the instances can be determined through the first parameter, and if the obtained first parameter is 23, it is determined that 23 available instances exist in the target instance resource package, and the number of the available instances is a positive number. Wherein, the positive number refers to a number larger than 0, and the available instance refers to an instance which can be called and stored in the target instance resource package. By the scheme, the available examples in the target resource package can be determined, and the examples can be called at any time when the user wants to use the examples in the resource package, so that the example creation does not need to be carried out again when the examples are used, and the difficulty in the example creation is reduced. The memory loss caused by repeated instance creation by the user is avoided, and the resource waste is reduced.
Optionally, in the technical solution provided in the embodiment of the present disclosure, when the number of instances in the target instance resource package is zero, it is determined that there is no available instance in the target instance resource package.
In this scheme, if the first parameter of the target instance resource package configuration is 0000, it is determined that the number of instances in the target instance resource package is zero, that is, the user cannot invoke an available instance from the target instance resource package. According to the scheme, whether the target instance resource package has the available instance or not can be determined, and when the target instance resource package does not have the available instance, a new target instance is created in time for the user to call.
Optionally, when there is no available instance in the target instance resource package, in order not to affect the use of the instance by the user, after determining that there is no available instance in the target instance resource package, a request for creating an instance may be sent to the target instance resource package.
In the scheme, after the user determines that no available instance exists in the target instance resource packet, a request for creating the instance can be sent at the mobile terminal. The request can be customized according to the use requirement of the user. In particular, the request to create an instance may include the type of instance requested to be created, and the template of the instance requested to be created. Wherein the instance template may include attribute information of the instance requested for use. In one example, the instance template requested for use may be class Person { public name; public skin; public arms; public kill; public score; public six; constractor () { this. score ═ 0; skins [ ]; this is [ ]; skin ═ is "; }}. According to the scheme, when the instance use request does not exist in the target instance resource package, the request for creating the instance can be sent to the user according to the use requirement of the user, and the new target instance is created in time when the available instance does not exist in the target instance resource package for the user to call.
Optionally, in order to determine a target instance resource package matched with a target instance type, in the technical solution provided in the embodiment of the present disclosure, instance type information of each instance resource package may be determined according to a second parameter configured for each of a plurality of instance resource packages, and further, the instance type information of each instance resource package is matched with the target instance type information, so as to determine the target resource package.
In the scheme, after second parameters configured for each of the multiple instance resource packages are acquired, instance type information of the multiple instance resource packages can be determined according to the multiple second parameters, an instance resource package identical to the target instance type information is determined in the acquired multiple instance resource packages, and the instance resource package is determined as the target instance resource package. For example: the second parameter for the target instance type is 03 and the second parameters for the multiple instance resource packages are 02, 03, 05, 10. The instance resource package with the second parameter 03 is determined as the target instance resource package. By the scheme, the resource packages with the same type can be called according to the call request of the user, and the accuracy of instance calling is ensured.
Fig. 2 is a schematic diagram of a method for storing a target instance into a target instance resource package according to an embodiment of the present disclosure, and with reference to fig. 2, the embodiment of the present disclosure provides a method for storing a target instance into a target instance resource package, including:
and S21, obtaining the residual number of the instances and the storage capacity of the target instance resource package.
And S22, when the target instance is determined to be used completely and the number of the remaining instances is less than the storage capacity, storing the target instance into the target instance resource package.
In step 21, the number of remaining instances and the storage capacity of the target instance resource package are obtained.
In the technical solution provided by the embodiment of the present disclosure, the storage capacity of the target instance resource package refers to the maximum number of instances that the target instance resource package can accommodate. In the scheme, the storage capacity of the target instance resource package can be determined according to the type of the target instance.
In one example, whether the target instance of the type is frequently used by the user can be determined according to the use habit of the user, the frequency of using the target instance of the type by the user for a period of time can be obtained, and the storage capacity of the target instance resource package can be determined according to the use frequency of the target instance of the type. Further, the higher the usage frequency of the type of target instance, the larger the storage capacity of the determined target instance. For example: obtaining that the target instance of the type is used 8 times a day, the storage capacity of the target instance can be determined 8 times. In an optimized scheme, a developer can set the corresponding relationship between the use frequency and the storage capacity of the type according to the development requirement of a specific target instance resource package.
In another example, a preset value of the frequency of using the target instance of the type by the user for a period of time may be preset, and when it is determined that the frequency of using the target instance of the type by the user for a period of time is greater than the preset value, the storage capacity of the target instance resource package of the type is set according to the storage capacity of the target instance resource package preset by the developer. For example: and presetting the preset value of the use frequency of the target instance of the type used by the user within a period of time to be 30 times, and presetting the frequency of the target instance of the type used by the user within a period of time to be 40 times, and then determining the storage capacity of the target instance resource package of the type to be the storage capacity of the target instance resource package preset by a developer.
The storage capacity of the target instance resource packet is configured according to the scheme, the storage capacity of the target instance resource packet can be more flexibly set in an individualized manner, and the memory occupation of the target instance resource packet is saved while the user requirements are met.
In this scheme, the number of remaining instances of the target instance resource package also needs to be obtained, and specifically, the number of remaining instances of the target instance resource package can be determined at least in the following two ways:
the first mode is as follows: the number of the target instances called by the user can be obtained, and the number of the remaining instances of the target instance resource package is determined according to the difference value between the capacity of the target instance resource package and the number of the called target instances. For example: the number of the target instances called by the user is 3, the capacity of the target instance resource package is 8, and the number of the remaining instances of the target instance resource package is 5.
The second mode is as follows: the first parameter of the current target instance resource packet can be obtained, and the number of the remaining instances of the target instance resource packet is determined according to the first parameter. For example: and if the first parameter information of the current target instance resource packet is 05, determining that the number of the remaining instances of the target instance resource packet is 5.
By the scheme, the number of the remaining examples in the target example resource package can be accurately judged, so that a user can know whether the current target example resource package reaches the storage condition for storing the used target example again, and the user can conveniently know the storage state of the target example resource package.
In step 22, after determining that the target instance has been used, when the number of remaining instances is less than the storage capacity, the target instance is stored in the target instance resource package.
In the scheme, after the user uses the target instance, whether the number of the remaining instances is smaller than the storage capacity of the target instance resource package needs to be determined. The type of the target instance resource package and the number of the remaining instances stored in the target instance resource package can be determined according to the first parameter and the second parameter configured in the target instance resource package. And determining the storage capacity of the target instance resource packet according to the type of the target instance resource packet. After determining the storage capacity of the target instance resource package and the number of the remaining instances stored in the target instance resource package, it is further determined whether the number of the remaining instances in the target instance resource package is less than the storage capacity. For example: and if the first parameter and the second parameter of the target instance resource package configuration are 21 and 03, determining that the number of the instances stored in the target instance resource package is 21 and the type of the instances is 03, and further determining that the storage capacity of the target instance resource package is 30 according to the type of the target instance 03, and determining that the number of the remaining instances in the target instance resource package is less than the storage capacity of the target instance resource package.
Further, when the number of the remaining instances in the target instance resource package is smaller than the storage capacity, the target instance is stored in the target instance resource package. The target instance stored in the target instance resource package can be a target instance used by the user according to the use habit of the user. In an optimized scheme, after the user uses the target instance, the target instance used by the user can be filtered, and the filtered target instance without the user change is stored in the target instance resource package for the user to call again. With the scheme, after the user finishes using the target instance, the used target instance is stored into the target instance resource packet again, so that the memory loss caused by repeated instance creation of the user is avoided. The product performance of the application program or the browser is optimized.
In practical application, the mobile terminal may be a mobile phone, and the front end may be a side displayed for the user to browse running on the mobile phone. After the browser is initialized, a developer creates a plurality of example resource packages on the side displayed to a user for browsing, and each example resource package carries a first parameter used for representing the number of the remaining examples and a second parameter used for representing the type of the examples. And when the user needs to use the instance, sending an instance use request carrying the target instance type to the browser through the mobile phone. The browser may determine the user's invocation intent for the target instance through the instance use request. And further determining a target instance resource packet with the same type as the instance requested to be called in the plurality of instance resource packets. And judging whether the target instance resource package has an available instance or not after the target instance resource package is determined, and calling the target instance for the user when the target instance resource package has the available instance. Therefore, after the user uses the target instance, whether the number of the remaining instances in the target instance resource package is smaller than the storage capacity of the target instance resource package is determined, and when the number of the remaining instances in the target instance resource package is smaller than the storage capacity of the target instance resource package, the called target instance is filtered according to the use habit of the user, and further, the filtered target instance is stored in the target instance resource package.
FIG. 3 is a schematic diagram of an information processing apparatus provided by an embodiment of the present disclosure; as shown in fig. 3, the embodiment of the present disclosure provides an information processing apparatus, which includes an obtaining module 31, a determining module 32, and a retrieving module 33. The obtaining module 31 is configured to obtain an instance use request carrying target instance type information; the determining module 32 is configured to determine a target instance resource package matching the target instance type from the created plurality of instance resource packages; the retrieval module 33 is configured to retrieve the target instance from the target instance resource package when there is an available instance in the target instance resource package.
By adopting the information processing method provided by the embodiment of the disclosure, the target instance type requested to be used can be determined by obtaining the instance use request carrying the target instance type. And determining a target instance resource package matched with the target instance type from the created multiple instance resource packages, and directly calling the target instance from the target instance resource package when determining that the available instance exists in the target instance resource package. According to the scheme, the instance creation does not need to be carried out again when the instance is used, and the difficulty of the instance creation is reduced. In addition, for the scene needing to create the same type of example for many times, the creation times of the target example can be reduced, the memory consumption caused by repeatedly creating the same type of example is saved, and the product performance of the application program or the browser is optimized.
FIG. 4 is a schematic diagram of another information processing apparatus provided by an embodiment of the present disclosure; as shown in fig. 4, an information processing apparatus according to an embodiment of the present disclosure includes a processor (processor)100 and a memory (memory) 101. Optionally, the apparatus may also include a Communication Interface (Communication Interface)102 and a bus 103. The processor 100, the communication interface 102, and the memory 101 may communicate with each other via a bus 103. The communication interface 102 may be used for information transfer. The processor 100 may call the logic instructions in the memory 101 to execute the method of information processing of the above-described embodiment.
In addition, the logic instructions in the memory 101 may be implemented in the form of software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products.
The memory 101, which is a computer-readable storage medium, may be used for storing software programs, computer-executable programs, such as program instructions/modules corresponding to the methods in the embodiments of the present disclosure. The processor 100 executes functional applications and data processing by executing program instructions/modules stored in the memory 101, that is, implements the method of information processing in the above-described embodiments.
The memory 101 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal device, and the like. In addition, the memory 101 may include a high-speed random access memory, and may also include a nonvolatile memory.
The embodiment of the disclosure provides an information processing system, which comprises the information processing device.
The disclosed embodiments provide a computer-readable storage medium storing computer-executable instructions configured to perform the above-mentioned information processing method.
The disclosed embodiments provide a computer program product comprising a computer program stored on a computer-readable storage medium, the computer program comprising program instructions that, when executed by a computer, cause the computer to perform the above-mentioned information processing method.
The computer-readable storage medium described above may be a transitory computer-readable storage medium or a non-transitory computer-readable storage medium.
The technical solution of the embodiments of the present disclosure may be embodied in the form of a software product, where the computer software product is stored in a storage medium and includes one or more instructions to enable a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method of the embodiments of the present disclosure. And the aforementioned storage medium may be a non-transitory storage medium comprising: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes, and may also be a transient storage medium.
The above description and drawings sufficiently illustrate embodiments of the disclosure to enable those skilled in the art to practice them. Other embodiments may incorporate structural, logical, electrical, process, and other changes. The examples merely typify possible variations. Individual components and functions are optional unless explicitly required, and the sequence of operations may vary. Portions and features of some embodiments may be included in or substituted for those of others. Furthermore, the words used in the specification are words of description only and are not intended to limit the claims. As used in the description of the embodiments and the claims, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. Similarly, the term "and/or" as used in this application is meant to encompass any and all possible combinations of one or more of the associated listed. Furthermore, the terms "comprises" and/or "comprising," when used in this application, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. Without further limitation, an element defined by the phrase "comprising an …" does not exclude the presence of other like elements in a process, method or apparatus that comprises the element. In this document, each embodiment may be described with emphasis on differences from other embodiments, and the same and similar parts between the respective embodiments may be referred to each other. For methods, products, etc. of the embodiment disclosures, reference may be made to the description of the method section for relevance if it corresponds to the method section of the embodiment disclosure.
Those of skill in the art would appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software may depend upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments. It can be clearly understood by the skilled person that, for convenience and brevity of description, the specific working processes of the system, the apparatus and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments disclosed herein, the disclosed methods, products (including but not limited to devices, apparatuses, etc.) may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units may be merely a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form. The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to implement the present embodiment. In addition, functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. In the description corresponding to the flowcharts and block diagrams in the figures, operations or steps corresponding to different blocks may also occur in different orders than disclosed in the description, and sometimes there is no specific order between the different operations or steps. For example, two sequential operations or steps may in fact be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. Each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.

Claims (10)

1. A method of information processing, comprising:
obtaining an instance use request carrying target instance type information;
according to the instance use request, determining a target instance resource packet matched with the target instance type from a plurality of created instance resource packets;
when available instances exist in the target instance resource package, target instances are called from the target instance resource package, wherein the target instances are one or more of the available instances.
2. The method of claim 1, wherein the instance resource package is configured with a first parameter indicating a number of remaining instances and a second parameter indicating a type of the instances.
3. The method of claim 2, wherein the presence of the available instance in the target instance resource package is determined by:
determining the number of the remaining examples in the target example resource package;
determining that the available instance exists in the target instance resource package when the number of remaining instances in the instance resource package is a positive number.
4. The method of claim 3, further comprising:
determining that the available instance does not exist in the target instance resource package when the number of remaining instances in the target instance resource package is zero.
5. The method of claim 4, wherein upon determining that the available instance does not exist in the target instance resource package, the method further comprises:
a request to create an instance is sent to the target instance resource package.
6. The method of claim 2, wherein determining a target instance resource package of the plurality of instance resource packages that matches the target instance type comprises:
and determining the instance type information of each instance resource packet according to the second parameters configured for each instance resource packet, matching the instance type information with the target instance type information, and determining the target instance resource packet.
7. The method of claim 1, further comprising:
obtaining the number of the remaining examples and the storage capacity of the target example resource package;
and when the target instance is determined to be used completely and the number of the remaining instances is less than the storage capacity, storing the target instance into the target instance resource package.
8. An information processing apparatus, comprising:
the obtaining module is configured to obtain an instance use request carrying target instance type information;
a determining module configured to determine a target instance resource package matching the target instance type from the created plurality of instance resource packages;
a retrieval module configured to retrieve a target instance from the target instance resource package when the available instance exists in the target instance resource package.
9. An information processing apparatus comprising a processor and a memory storing program instructions, wherein the processor is configured to perform the method for information processing according to any one of claims 1 to 7 when executing the program instructions.
10. An information processing system, characterized by comprising an apparatus for information processing according to claim 9.
CN202011554386.2A 2020-12-24 2020-12-24 Information processing method, device and system Pending CN112612611A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011554386.2A CN112612611A (en) 2020-12-24 2020-12-24 Information processing method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011554386.2A CN112612611A (en) 2020-12-24 2020-12-24 Information processing method, device and system

Publications (1)

Publication Number Publication Date
CN112612611A true CN112612611A (en) 2021-04-06

Family

ID=75245188

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011554386.2A Pending CN112612611A (en) 2020-12-24 2020-12-24 Information processing method, device and system

Country Status (1)

Country Link
CN (1) CN112612611A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113448632A (en) * 2021-05-27 2021-09-28 山东英信计算机技术有限公司 Redfish resource information calling method, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6845505B1 (en) * 1997-02-03 2005-01-18 Oracle International Corporation Web request broker controlling multiple processes
US9898315B1 (en) * 2014-11-24 2018-02-20 Amazon Technologies, Inc. Management of demand for virtual computing resources
WO2018077079A1 (en) * 2016-10-31 2018-05-03 阿里巴巴集团控股有限公司 Application capacity enlargement method, apparatus and system
CN109976771A (en) * 2019-03-28 2019-07-05 新华三技术有限公司 A kind of dispositions method and device of application
CN110908808A (en) * 2018-09-14 2020-03-24 网宿科技股份有限公司 Method and device for controlling API (application program interface) calling resource
US20210406076A1 (en) * 2017-01-13 2021-12-30 Boe Technology Group Co., Ltd. Method and device for operating instance resources

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6845505B1 (en) * 1997-02-03 2005-01-18 Oracle International Corporation Web request broker controlling multiple processes
US9898315B1 (en) * 2014-11-24 2018-02-20 Amazon Technologies, Inc. Management of demand for virtual computing resources
WO2018077079A1 (en) * 2016-10-31 2018-05-03 阿里巴巴集团控股有限公司 Application capacity enlargement method, apparatus and system
US20210406076A1 (en) * 2017-01-13 2021-12-30 Boe Technology Group Co., Ltd. Method and device for operating instance resources
CN110908808A (en) * 2018-09-14 2020-03-24 网宿科技股份有限公司 Method and device for controlling API (application program interface) calling resource
CN109976771A (en) * 2019-03-28 2019-07-05 新华三技术有限公司 A kind of dispositions method and device of application

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113448632A (en) * 2021-05-27 2021-09-28 山东英信计算机技术有限公司 Redfish resource information calling method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
EP2724251B1 (en) Methods for making ajax web applications bookmarkable and crawlable and devices thereof
CN107832406B (en) Method, device, equipment and storage medium for removing duplicate entries of mass log data
CN107872437B (en) Method, device and server for service request
EP2755145A1 (en) Webpage browsing method and device, and storage medium
US20060095538A1 (en) Parameter passing in web based systems
CN106656920B (en) Processing method, device, storage medium and the processor of HTTP service
CN109885744B (en) Webpage data crawling method, device, system, computer equipment and storage medium
EP1109104A1 (en) Deleting unused templates
US20220035886A1 (en) Web browser with enhanced history classification
CN103064738A (en) Method and system for embedding local application program window into browser in Linux
CN109657177A (en) The generation method of the page, device, storage medium and computer equipment after upgrading
WO2014015787A1 (en) Method, server, and client for pushing and displaying splash screen
CN106569860A (en) Application management method and terminal
WO2020092135A1 (en) Extracting web api endpoint data from source code
CN111651296A (en) Interception backup method, device, equipment and storage medium for data deletion operation
TWI519980B (en) Method and device for displaying web page and computer-readable storage medium
CN105550179A (en) Webpage collection method and browser plug-in
CN112612611A (en) Information processing method, device and system
CN111797297B (en) Page data processing method and device, computer equipment and storage medium
CN108287831B (en) URL classification method and system and data processing method and system
CN110321510A (en) Page rendering method and system
EP2898433A1 (en) Method and apparatus for obtaining information
CN111294377A (en) Network request sending method of dependency relationship, terminal device and storage medium
EP2998885A1 (en) Method and device for information search
CN115065945A (en) Short message link generation method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20210406

RJ01 Rejection of invention patent application after publication