CN116302566A - Global variable customizable memory management method - Google Patents

Global variable customizable memory management method Download PDF

Info

Publication number
CN116302566A
CN116302566A CN202310535034.XA CN202310535034A CN116302566A CN 116302566 A CN116302566 A CN 116302566A CN 202310535034 A CN202310535034 A CN 202310535034A CN 116302566 A CN116302566 A CN 116302566A
Authority
CN
China
Prior art keywords
module
page
memory
page control
data
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.)
Granted
Application number
CN202310535034.XA
Other languages
Chinese (zh)
Other versions
CN116302566B (en
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.)
Shenzhen Sunray Electronics Co ltd
Original Assignee
Shenzhen Sunray Electronics 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 Shenzhen Sunray Electronics Co ltd filed Critical Shenzhen Sunray Electronics Co ltd
Priority to CN202310535034.XA priority Critical patent/CN116302566B/en
Publication of CN116302566A publication Critical patent/CN116302566A/en
Application granted granted Critical
Publication of CN116302566B publication Critical patent/CN116302566B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • 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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention discloses a global variable customizable memory management method, which comprises the following steps: step one: acquiring data needing paging control through a request, transmitting the data to a page control assembly, and calculating the total page number according to the total data number and each page number; step two: the number and the state of the function buttons in the initialized state are rendered according to the total page number, and a method for controlling the change of the function buttons and the display logic after page number switching is written; step three: the developer inputs the self-defined data, performs layout rendering according to the data input by the developer, calculates the occupied memory of the page control component during the layout rendering, and determines whether the function buttons are disabled or not; step four: the method and the device for determining the additional memory occupancy rate of the pages, the final rendered result is presented, and page numbers and data of the number of each page generated after clicking are transmitted through a defined callback function.

Description

Global variable customizable memory management method
Technical Field
The invention relates to the technical field of IT, in particular to a global variable customizable memory management method.
Background
With the rapid development of Vue, especially after release of Vue3, more and more people are beginning to use Vue, which is now one of the three front end frames worldwide. Vue is a set of progressive frameworks for building user interfaces that are designed to be applied layer by layer from bottom up.
Page control components are typically found in various vue-based component libraries, such as the well-developed page control components in the common vue-based component library elementUI. However, these components are only suitable for general pages, and when some pages are typeset and the functions are complex, these page control components will influence the beauty of the pages and the normal use of the function buttons because the memory is not enough to be typeset and disordered. Meanwhile, too many function buttons can cause a large amount of operation memory to be occupied, so that the page loading speed is influenced, the memory capacity is often improved at one time by the existing method, the cost is too high, and the practicability is poor. Therefore, a global variable customizable memory management method with high design practicality is necessary.
Disclosure of Invention
The invention aims to provide a global variable customizable memory management method to solve the problems in the background technology.
In order to solve the technical problems, the invention provides the following technical scheme: a global variable customizable memory management method comprises the following steps:
step one: acquiring data needing paging control through a request, transmitting the data to a page control assembly, and calculating the total page number according to the total data number and each page number;
step two: the number and the state of the function buttons in the initialized state are rendered according to the total page number, and a method for controlling the change of the function buttons and the display logic after page number switching is written;
step three: the developer inputs the self-defined data, performs layout rendering according to the data input by the developer, calculates the occupied memory of the page control component during the layout rendering, and determines whether the function buttons are disabled or not;
step four: and determining the extra memory occupancy rate of the page, presenting the final rendered result, and transmitting page numbers and data of each page number generated after clicking through a defined callback function so as to enable a developer to perform related data request or refresh.
According to the technical scheme, the system adopted by the method comprises a component library module, a memory adjusting module and a function button module, wherein the component library module is electrically connected with the function button module;
the module library module is used for recording and managing various data of the page control module in the module library, the memory adjustment module is used for displaying occupied memory of the page control module and calculating the remaining memory capacity required to be occupied, and the function button module is used for realizing and ensuring various basic functions of the function button.
According to the technical scheme, the assembly library module comprises a data transmission module, an assembly library data recording module, an assembly library error reporting and recording module and a complex typesetting judging module, wherein the data transmission module is electrically connected with the assembly library data recording module;
the memory adjusting module comprises a page display evaluation module, a memory consumption calculation module and an extra capacity module, wherein the page display evaluation module is electrically connected with the memory consumption calculation module and the extra capacity module;
the data input module is used for enabling the page control assembly to input data in the page, the assembly library data recording module is used for recording basic data of the page control assembly, the assembly library error recording module is used for recording error recording of the page control assembly, the complex typesetting judging module is used for judging the degree of complex typesetting in the memory page according to the types and the quantity of the functional buttons, the page display evaluating module is used for evaluating whether the page of the page control assembly is normally displayed or not, the memory consumption calculating module is used for calculating memory consumption occupied by the rest of the page control assembly, and the extra capacity module is used for distributing extra memory capacity for the page control assembly.
According to the technical scheme, the function button module comprises a function button loading module, a function button storage module, a function button disabling module, a function button eliminating module and a function button recovering module, wherein the function button loading module is electrically connected with the function button storage module, and the function button storage module is electrically connected with the function button recovering module;
the function button loading module is used for loading function buttons in the component library and displaying the function buttons, the function button storage module is used for storing the function buttons in the component library and realizing the variety increase and decrease of the function buttons, the function button disabling module is used for disabling the function buttons in the component library when the page control component does not display normal data, the function button eliminating module is used for eliminating the function buttons in the component library when the page control component does not recover the normal operation data display within an extra occupation period, and the function button recovering module is used for recovering the function buttons in the normal page display operation.
According to the technical scheme, the extra capacity module comprises a memory grant module, a memory occupied time module, an extra capacity issuing module, an extra capacity recovery module and an expiration reminding module, wherein the memory grant module is electrically connected with the extra capacity issuing module, the extra capacity recovery module is electrically connected with the expiration reminding module, and the expiration reminding module is electrically connected with the memory occupied time module and the component library error reporting and recording module;
the memory grant module is used for granting the extra memory application of the page control component after receiving the memory consumption, the memory occupation time module is used for recording the occupation period of the memory, the extra capacity issuing module is used for enabling other programs to be called into the background to operate so as to temporarily issue extra memory capacity to the page control component, the extra capacity recovery module is used for recovering occupation due to expiration, and the expiration reminding module is used for reminding the page control component when the page control component does not recover normal operation extra capacity within the specified occupation period.
According to the technical scheme, the specific workflow of the third to fourth steps is as follows:
step S0, before the page control component performs display evaluation in the page, firstly, a component library is registered through a data transmission module, and the component library data of the page control component is stored through a component library data recording module;
step S1, evaluating a page display effect through a page display evaluation module, when the existing memory capacity of a page control assembly is insufficient for normal display, calculating the remaining memory consumption required to be occupied by a memory consumption calculation module, allowing the page control assembly to load function buttons through a function button loading module and display the function buttons by using the function buttons, wherein the total number of the function buttons is limited, and when the page control assembly in the page is increased, the types of the activation of the function buttons in an assembly library of the page control assembly are reduced, and the functions buttons are stored and increased and decreased through a function button storage module;
step S2, if the normal display still cannot be performed through the decline of the activation type of the function button, the page agrees with the memory application of the page control component through the memory grant module, and additional capacity is sent out, wherein the additional memory occupancy rate is related to the proportion of the complex typesetting in the memory page, the number of times of reporting and recording the page control component and the time of page loading, and the total number of the complex typesetting is counted by the complex typesetting judging module;
step S3, the page is retrieved on schedule through the extra capacity retrieving module, if the page is not normally displayed after the page is returned due to expiration, the function buttons in the component library of the page control component are removed through the function button removing module, so that the buffer function of the high-load loading component is achieved, and the loss is compensated;
and S4, after the page control assembly finishes displaying all data, the rest function buttons can be restored according to the types through the function button restoration module, and the eliminated function button data in the assembly library is cleared after restoration.
According to the above technical solution, in the step S1, the calculation method for increasing or decreasing the types of activation of the function buttons includes:
when the number of page control components in the memory page is increased, the types of the activation of the function buttons are reduced, and the types of the activation of the function buttons and the number of the page control components are in a linear relationship, specifically:
Figure SMS_1
wherein S is the number of functional button types, x is the total number of page control components in the memory page,
Figure SMS_2
for regulating the coefficient->
Figure SMS_3
Is the initial function button category.
According to the above technical solution, in the step S2, the method for calculating the additional memory occupancy rate includes:
the risk of the memory is embodied as the proportion of the complex typesetting in the memory page to the total page control components, when the proportion of the complex typesetting in the memory page is increased, the number of high-load loading components in the page is increased, the display capability of the page is weakened, and the difficulty of continuous operation of the page is further increased, so that the safety margin is increased, the page is increased, the additional memory occupancy rate of the display information is increased, and the additional memory occupancy rate is reduced along with the increase of the proportion of the complex typesetting in the memory page;
the stability condition of the page control component shows whether the page control component has error reporting records, when the page control component does not have error reporting records, the extra memory occupancy rate of the display information of the page control component is not additionally adjusted, when the page control component has error reporting records, but the page control component is less in frequency and resumes normal operation within a set time, the extra memory occupancy rate of the display information of the page control component is improved, and when the error reporting records of the page control component are more or the memory of the page control component is still not recovered to normal operation, extra memory is provided for the page control component;
the longer the page is loaded, the higher the uncertainty factor of the page providing memory is, and in order to reduce the risk, the additional memory occupancy rate is reduced along with the increase of the memory occupancy time;
Figure SMS_4
where W is the additional memory occupancy rate,
Figure SMS_5
for the initial additional memory occupancy rate, y is the total number of complex typesets, n is the number of reporting and recording times of the page control component, wherein n is {0,1,2}, t is the time of page loading of the page control component, and ω and β are adjustment coefficients.
Compared with the prior art, the invention has the following beneficial effects: according to the invention, when the page cannot be normally displayed, the partial function buttons are locally disabled according to the number of the page control components through the hierarchical processing thought, if the problem still cannot be overcome, the additional memory is introduced, the additional memory occupancy rate is mainly determined and allocated additional memory capacity is determined through comprehensive evaluation according to the following factors, namely the risk of the memory, the stability condition of the page control components and the page loading time, so that a customized memory management scheme based on global variables is achieved, and complex pages can be normally displayed on the premise of occupying no system resources as much as possible.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate the invention and together with the embodiments of the invention, serve to explain the invention. In the drawings:
fig. 1 is a schematic view of the overall module structure of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, the present invention provides the following technical solutions: a global variable customizable memory management method comprises the following steps:
step one: acquiring data needing paging control through a request, transmitting the data to a page control assembly, and calculating the total page number according to the total data number and each page number;
step two: the number and the state of the function buttons in the initialized state are rendered according to the total page number, and a method for controlling the change of the function buttons and the display logic after page number switching is written;
step three: the developer inputs the self-defined data, performs layout rendering according to the data input by the developer, calculates the occupied memory of the page control component during the layout rendering, and determines whether the function buttons are disabled or not;
step four: determining the extra memory occupancy rate of the page, presenting the final rendered result, and transmitting page numbers and data of each page number generated after clicking through a defined callback function so as to enable a developer to perform related data request or refresh;
the system adopted by the method comprises a component library module, a memory adjusting module and a function button module, wherein the component library module is electrically connected with the function button module;
the assembly library module is used for recording and managing various data of the page control assembly in the assembly library, the memory adjusting module is used for displaying the occupied memory of the page control assembly, calculating the remaining memory capacity required to be occupied, and the function button module is used for realizing and ensuring various basic functions of the function button;
the assembly library module comprises a data transmission module, an assembly library data recording module, an assembly library error recording module and a complex typesetting judging module, and the data transmission module is electrically connected with the assembly library data recording module;
the memory adjusting module comprises a page display evaluating module, a memory consumption calculating module and an extra capacity module, wherein the page display evaluating module is electrically connected with the memory consumption calculating module and the extra capacity module;
the data input module is used for inputting data into the page control assembly in the page, the assembly library data recording module is used for recording basic data of the page control assembly, the assembly library error recording module is used for recording error recording of the page control assembly, the complex typesetting judging module is used for judging the degree of complex typesetting in the memory page according to the types and the number of the functional buttons, the page display evaluating module is used for evaluating whether the page of the page control assembly is normally displayed or not, the memory consumption calculating module is used for calculating the memory consumption which is required to be occupied by the rest of the page control assembly, and the extra capacity module is used for distributing extra memory capacity for the page control assembly;
the function button module comprises a function button loading module, a function button storage module, a function button disabling module, a function button eliminating module and a function button recovering module, wherein the function button loading module is electrically connected with the function button storage module, and the function button storage module is electrically connected with the function button recovering module;
the function button loading module is used for loading and displaying function buttons in the component library, the function button storage module is used for storing the function buttons in the component library and realizing the variety increase and decrease of the function buttons, the function button disabling module is used for disabling the function buttons in the component library when the page control component does not display normal data, the function button eliminating module is used for eliminating the function buttons in the component library when the page control component does not recover the normal operation data display within an extra occupation period, and the function button recovering module is used for recovering the function buttons when the page control component does not display normal page;
the additional capacity module comprises a memory grant module, a memory occupied time module, an additional capacity issuing module, an additional capacity recovery module and an expiration reminding module, wherein the memory grant module is electrically connected with the additional capacity issuing module, the additional capacity recovery module is electrically connected with the expiration reminding module, and the expiration reminding module is electrically connected with the memory occupied time module and the component library error reporting and recording module;
the memory grant module is used for granting the extra memory application of the page control component after receiving the memory consumption, the memory occupation time module is used for recording the occupation period of the memory, the extra capacity issuing module is used for enabling other programs to be called into the background to operate so as to temporarily issue extra memory capacity to the page control component, the extra capacity recovery module is used for recovering occupation due to expiration, and the expiration reminding module is used for reminding the page control component when the page control component does not recover normal operation extra capacity within the specified occupation period;
the specific working procedures from the third step to the fourth step are as follows:
step S0, before the page control component performs display evaluation in the page, firstly, a component library is registered through a data transmission module, and the component library data of the page control component is stored through a component library data recording module;
step S1, evaluating a page display effect through a page display evaluation module, when the existing memory capacity of a page control assembly is insufficient for normal display, calculating the remaining memory consumption required to be occupied by a memory consumption calculation module, allowing the page control assembly to load function buttons through a function button loading module and display the function buttons by using the function buttons, wherein the total number of the function buttons is limited, and when the page control assembly in the page grows, the types of the activation of the function buttons in a page control library are reduced, and the functions buttons are stored and increased and decreased through a function button storage module;
step S2, if the normal display still cannot be performed through the decline of the activation type of the function button, the page agrees with the memory application of the page control component through the memory grant module, and additional capacity is sent out, wherein the additional memory occupancy rate is related to the proportion of the complex typesetting in the memory page, the number of times of reporting and recording the page control component and the time of page loading, and the total number of the complex typesetting is counted by the complex typesetting judging module;
step S3, the page is retrieved on schedule through the extra capacity retrieving module, if the page is not normally displayed after the page is returned due to expiration, the function buttons in the component library of the page control component are removed through the function button removing module, so that the buffer function of the high-load loading component is achieved, and the loss is compensated;
s4, after the page control assembly finishes displaying all data, the rest function buttons can be restored according to the types through the function button restoration module, and the eliminated function button data in the assembly library is cleared after restoration;
in the step S1, the calculation method for increasing or decreasing the types of the activation of the function buttons includes:
when the number of page control components in the memory page is increased, the types of the activation of the function buttons are reduced, and the types of the activation of the function buttons and the number of the page control components are in a linear relationship, specifically:
Figure SMS_6
wherein S is the number of functional button types, x is the total number of page control components in the memory page,
Figure SMS_7
for regulating the coefficient->
Figure SMS_8
Is the initial function button category;
in the step S2, the method for calculating the additional memory occupancy rate includes:
the risk of the memory is embodied as the proportion of the complex typesetting in the memory page to the total page control components, when the proportion of the complex typesetting in the memory page is increased, the number of high-load loading components in the page is increased, the display capability of the page is weakened, and the difficulty of continuous operation of the page is further increased, so that the safety margin is increased, the page is increased, the additional memory occupancy rate of the display information is increased, and the additional memory occupancy rate is reduced along with the increase of the proportion of the complex typesetting in the memory page;
the stability condition of the page control component shows whether the page control component has error reporting records, when the page control component does not have error reporting records, the extra memory occupancy rate of the display information of the page control component is not additionally adjusted, when the page control component has error reporting records, but the page control component is less in frequency and resumes normal operation within a set time, the extra memory occupancy rate of the display information of the page control component is improved, and when the error reporting records of the page control component are more or the memory of the page control component is still not recovered to normal operation, extra memory is provided for the page control component;
the longer the page is loaded, the higher the uncertainty factor of the page providing memory is, and in order to reduce the risk, the additional memory occupancy rate is reduced along with the increase of the memory occupancy time;
Figure SMS_9
where W is the additional memory occupancy rate,
Figure SMS_10
for initial additional memory occupancy, y is the total of the complex typesetsThe number n is the number of times of reporting and recording the page control component, wherein n is {0,1,2}, t is the time of page loading of the page control component, and ω and β are adjustment coefficients.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
Finally, it should be noted that: the foregoing description is only a preferred embodiment of the present invention, and the present invention is not limited thereto, but it is to be understood that modifications and equivalents of some of the technical features described in the foregoing embodiments may be made by those skilled in the art, although the present invention has been described in detail with reference to the foregoing embodiments. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (8)

1. A global variable customizable memory management method is characterized in that: the method comprises the following steps:
step one: acquiring data needing paging control through a request, transmitting the data to a page control assembly, and calculating the total page number according to the total data number and each page number;
step two: the number and the state of the function buttons in the initialized state are rendered according to the total page number, and a method for controlling the change of the function buttons and the display logic after page number switching is written;
step three: the developer inputs the self-defined data, performs layout rendering according to the data input by the developer, calculates the occupied memory of the page control component during the layout rendering, and determines whether the function buttons are disabled or not;
step four: and determining the extra memory occupancy rate of the page, presenting the final rendered result, and transmitting page numbers and data of each page number generated after clicking through a defined callback function so as to enable a developer to perform related data request or refresh.
2. The global variable customizable memory management method of claim 1, wherein: the system adopted by the method comprises a component library module, a memory adjusting module and a function button module, wherein the component library module is electrically connected with the function button module;
the module library module is used for recording and managing various data of the page control module in the module library, the memory adjustment module is used for displaying occupied memory of the page control module and calculating the remaining memory capacity required to be occupied, and the function button module is used for realizing and ensuring various basic functions of the function button.
3. The global variable customizable memory management method of claim 2, wherein: the assembly library module comprises a data transmission module, an assembly library data recording module, an assembly library error reporting and recording module and a complex typesetting judging module, wherein the data transmission module is electrically connected with the assembly library data recording module;
the memory adjusting module comprises a page display evaluation module, a memory consumption calculation module and an extra capacity module, wherein the page display evaluation module is electrically connected with the memory consumption calculation module and the extra capacity module;
the data input module is used for enabling the page control assembly to input data in the page, the assembly library data recording module is used for recording basic data of the page control assembly, the assembly library error recording module is used for recording error recording of the page control assembly, the complex typesetting judging module is used for judging the degree of complex typesetting in the memory page according to the types and the quantity of the functional buttons, the page display evaluating module is used for evaluating whether the page of the page control assembly is normally displayed or not, the memory consumption calculating module is used for calculating memory consumption occupied by the rest of the page control assembly, and the extra capacity module is used for distributing extra memory capacity for the page control assembly.
4. A global variable customizable memory management method according to claim 3, wherein: the function button module comprises a function button loading module, a function button storage module, a function button disabling module, a function button eliminating module and a function button recovering module, wherein the function button loading module is electrically connected with the function button storage module, and the function button storage module is electrically connected with the function button recovering module;
the function button loading module is used for loading function buttons in the component library and displaying the function buttons, the function button storage module is used for storing the function buttons in the component library and realizing the variety increase and decrease of the function buttons, the function button disabling module is used for disabling the function buttons in the component library when the page control component does not display normal data, the function button eliminating module is used for eliminating the function buttons in the component library when the page control component does not recover the normal operation data display within an extra occupation period, and the function button recovering module is used for recovering the function buttons in the normal page display operation.
5. The method for global variable customizable memory management according to claim 4, wherein: the extra capacity module comprises a memory grant module, a memory occupied time module, an extra capacity issuing module, an extra capacity recovery module and an expiration reminding module, wherein the memory grant module is electrically connected with the extra capacity issuing module, the extra capacity recovery module is electrically connected with the expiration reminding module, and the expiration reminding module is electrically connected with the memory occupied time module and the component library error recording module;
the memory grant module is used for granting the extra memory application of the page control component after receiving the memory consumption, the memory occupation time module is used for recording the occupation period of the memory, the extra capacity issuing module is used for enabling other programs to be called into the background to operate so as to temporarily issue extra memory capacity to the page control component, the extra capacity recovery module is used for recovering occupation due to expiration, and the expiration reminding module is used for reminding the page control component when the page control component does not recover normal operation extra capacity within the specified occupation period.
6. The global variable customizable memory management method of claim 5, wherein: the specific working procedures from the third step to the fourth step are as follows:
step S0, before the page control component performs display evaluation in the page, firstly, a component library is registered through a data transmission module, and the component library data of the page control component is stored through a component library data recording module;
step S1, evaluating a page display effect through a page display evaluation module, when the existing memory capacity of a page control assembly is insufficient for normal display, calculating the remaining memory consumption required to be occupied by a memory consumption calculation module, allowing the page control assembly to load function buttons through a function button loading module and display the function buttons by using the function buttons, wherein the total number of the function buttons is limited, and when the page control assembly in the page is increased, the types of the activation of the function buttons in an assembly library of the page control assembly are reduced, and the functions buttons are stored and increased and decreased through a function button storage module;
step S2, if the normal display still cannot be performed through the decline of the activation type of the function button, the page agrees with the memory application of the page control component through the memory grant module, and additional capacity is sent out, wherein the additional memory occupancy rate is related to the proportion of the complex typesetting in the memory page, the number of times of reporting and recording the page control component and the time of page loading, and the total number of the complex typesetting is counted by the complex typesetting judging module;
step S3, the page is retrieved on schedule through the extra capacity retrieving module, if the page is not normally displayed after the page is returned due to expiration, the function buttons in the component library of the page control component are removed through the function button removing module, so that the buffer function of the high-load loading component is achieved, and the loss is compensated;
and S4, after the page control assembly finishes displaying all data, the rest function buttons can be restored according to the types through the function button restoration module, and the eliminated function button data in the assembly library is cleared after restoration.
7. The global variable customizable memory management method of claim 6, wherein: in the step S1, the calculation method for increasing or decreasing the types of the activation of the function buttons includes:
when the number of page control components in the memory page is increased, the types of the activation of the function buttons are reduced, and the types of the activation of the function buttons and the number of the page control components are in a linear relationship, specifically:
Figure QLYQS_1
wherein S is the number of functional button types, x is the total number of page control components in the memory page,
Figure QLYQS_2
for regulating the coefficient->
Figure QLYQS_3
Is the initial function button category.
8. The global variable customizable memory management method of claim 7, wherein: in the step S2, the method for calculating the additional memory occupancy rate includes:
the risk of the memory is embodied as the proportion of the complex typesetting in the memory page to the total page control component, when the proportion of the complex typesetting in the memory page is increased, the page can improve the additional memory occupancy rate of the display information, and the additional memory occupancy rate is reduced along with the increase of the proportion of the complex typesetting in the memory page;
the stability condition of the page control component shows whether the page control component has error reporting records, when the page control component does not have error reporting records, the extra memory occupancy rate of the display information of the page control component is not additionally adjusted, when the page control component has error reporting records, but the page control component is less in frequency and resumes normal operation within a set time, the extra memory occupancy rate of the display information of the page control component is improved, and when the error reporting records of the page control component are more or the memory of the page control component is still not recovered to normal operation, extra memory is provided for the page control component;
the longer the page is loaded, the higher the uncertainty factor of the page providing memory is, and in order to reduce the risk, the additional memory occupancy rate is reduced along with the increase of the memory occupancy time;
Figure QLYQS_4
where W is the additional memory occupancy rate,
Figure QLYQS_5
for the initial additional memory occupancy rate, y is the total number of complex typesets, n is the number of error recording times of the page control component, wherein n is E ∈ ->
Figure QLYQS_6
T is the time of page loading of the page control component, < >>
Figure QLYQS_7
、/>
Figure QLYQS_8
For adjusting the coefficients.
CN202310535034.XA 2023-05-12 2023-05-12 Global variable customizable memory management method Active CN116302566B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310535034.XA CN116302566B (en) 2023-05-12 2023-05-12 Global variable customizable memory management method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310535034.XA CN116302566B (en) 2023-05-12 2023-05-12 Global variable customizable memory management method

Publications (2)

Publication Number Publication Date
CN116302566A true CN116302566A (en) 2023-06-23
CN116302566B CN116302566B (en) 2023-08-18

Family

ID=86789079

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310535034.XA Active CN116302566B (en) 2023-05-12 2023-05-12 Global variable customizable memory management method

Country Status (1)

Country Link
CN (1) CN116302566B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104361049A (en) * 2014-10-29 2015-02-18 中国建设银行股份有限公司 Method and system for quickly expressing data of database
WO2017011223A1 (en) * 2015-07-10 2017-01-19 Rambus, Inc. Thread associated memory allocation and memory architecture aware allocation
CN108829311A (en) * 2017-04-27 2018-11-16 北京京东尚科信息技术有限公司 A kind of method and apparatus based on Widget display data
CN111782326A (en) * 2020-06-30 2020-10-16 北京字节跳动网络技术有限公司 Method and device for controlling page refreshing, computer equipment and storage medium
WO2021233409A1 (en) * 2020-05-22 2021-11-25 阿里巴巴集团控股有限公司 Page display method and apparatus, and electronic device
CN114003191A (en) * 2021-10-29 2022-02-01 歌尔科技有限公司 Screen display method, device and medium
CN115934052A (en) * 2022-12-16 2023-04-07 雷沃工程机械集团有限公司 Single page refreshing method applied to WEB end of engineering machinery
WO2023065707A1 (en) * 2021-10-21 2023-04-27 深圳前海微众银行股份有限公司 Method and apparatus for page display

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104361049A (en) * 2014-10-29 2015-02-18 中国建设银行股份有限公司 Method and system for quickly expressing data of database
WO2017011223A1 (en) * 2015-07-10 2017-01-19 Rambus, Inc. Thread associated memory allocation and memory architecture aware allocation
CN108829311A (en) * 2017-04-27 2018-11-16 北京京东尚科信息技术有限公司 A kind of method and apparatus based on Widget display data
WO2021233409A1 (en) * 2020-05-22 2021-11-25 阿里巴巴集团控股有限公司 Page display method and apparatus, and electronic device
CN111782326A (en) * 2020-06-30 2020-10-16 北京字节跳动网络技术有限公司 Method and device for controlling page refreshing, computer equipment and storage medium
WO2023065707A1 (en) * 2021-10-21 2023-04-27 深圳前海微众银行股份有限公司 Method and apparatus for page display
CN114003191A (en) * 2021-10-29 2022-02-01 歌尔科技有限公司 Screen display method, device and medium
CN115934052A (en) * 2022-12-16 2023-04-07 雷沃工程机械集团有限公司 Single page refreshing method applied to WEB end of engineering machinery

Also Published As

Publication number Publication date
CN116302566B (en) 2023-08-18

Similar Documents

Publication Publication Date Title
US7937257B2 (en) Estimating performance of application based on automatic resizing of shared memory for messaging
US5317730A (en) System for modifying persistent database based upon set of data elements formed after selective insertion or deletion
US8548948B2 (en) Methods and apparatus for a fine grained file data storage system
US5740800A (en) Method and apparatus for clinical pathway order selection in a medical information system
US8839142B2 (en) Desktop system object removal
US7249042B1 (en) Method and system for visually indicating project task durations are estimated using a character
EP2278499A1 (en) Arbitrating concurrent access to file system objects
US8825615B2 (en) Simplifying implementation of custom atomic transactions in a programming environment
JP2004534340A (en) Forecast calendar
US6014657A (en) Checking and enabling database updates with a dynamic multi-modal, rule base system
CN105138630A (en) Schedule prompt method and terminal
CN102959518A (en) Restore of full system backup and incremental backups using multiple simultaneous device streams
WO2017136296A1 (en) Configurable access to a document&#39;s revision history
WO2017200776A1 (en) Visualizing document activity
CN116302566B (en) Global variable customizable memory management method
US10929454B2 (en) System and method for organizing notes
KR20050048468A (en) Active agenda
US7801858B2 (en) File system and file information processing method
US7080103B2 (en) Personal information management system and method with audit functionality
CA2317309A1 (en) History-based document differencing showing nature of differences
CN115905757B (en) Distributed deployment-based browser digital management system and method
McLeavey et al. Optimization of system reliability by branch-and-bound
JPH0973407A (en) Data management device
JPH05113863A (en) Preferential display method for menu item
JPH05233330A (en) Method and device for directly and automatically accessing to calendar task from non-calendar task

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
GR01 Patent grant
GR01 Patent grant