CN108021445A - Memory Optimize Method, device, system and computer-readable recording medium - Google Patents
Memory Optimize Method, device, system and computer-readable recording medium Download PDFInfo
- Publication number
- CN108021445A CN108021445A CN201711178394.XA CN201711178394A CN108021445A CN 108021445 A CN108021445 A CN 108021445A CN 201711178394 A CN201711178394 A CN 201711178394A CN 108021445 A CN108021445 A CN 108021445A
- Authority
- CN
- China
- Prior art keywords
- root view
- view controller
- initialization
- memory
- instance objects
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5011—Allocation 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/5022—Mechanisms to release resources
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/34—Graphical or visual programming
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a kind of Memory Optimize Method, including:After the initialization of Root View controller, entrance class is mounted to the Root View controller;The static weak reference pointer of statement one is directed toward the instance objects of the entrance class, and obtains the instance objects by the static weak reference pointer;The instance objects are mounted to the entrance class, generate the shared information of the instance objects;The submodule for making the Root View controller by the shared information calls the instance objects, and after the completion of calling, closes the Root View controller and destroy the entrance class and the shared information.The invention also discloses a kind of internal memory optimization device, system and computer-readable recording medium.Startup and closing of the invention by self-defined business process life cycle, realizes the beneficial effect of Business Stream life cycle management.
Description
Technical field
The present invention relates to field of program development, more particularly to a kind of Memory Optimize Method, device and computer-readable storage
Medium.
Background technology
In the exploitation of iOS clients, as user volume and the continuous of portfolio increase, app frameworks also upgrade constantly,
More and more it is intended to serviced component, business module.But current so-called business module, simply in code wrap and code
It is relatively independent in file management, but be not real independence in memory management aspect, between the memory instance of each business module
There are still complementary relation, so mainly memory overflow can be easily produced there are business module life cycle is long
Problem.Because the example trustship of most of object in business module is in called side, or trustship is in the static strongly reference of an inside
On object instance, or even trustship is on singleton object., can not automatically, in time, reliably so when operation flow is finished
The instance objects in module are destroyed, it is necessary to artificially write code progress memory cleaning, memory overflow accidentally just occurs, causes
Business malfunctions, serious that huge economic loss can be caused to enterprise and user.
The above is only used to facilitate the understanding of the technical scheme, and is not represented and is recognized that the above is existing skill
Art.
The content of the invention
It is a primary object of the present invention to provide a kind of Memory Optimize Method, it is intended to solve the prior art in program development
Cheng Zhong, caused instance objects can not destroy when existing architectural schemes business module can not achieve service life cycle self-service management
Technical problem.
To achieve the above object, the present invention provides a kind of Memory Optimize Method, including herein below:
After the initialization of Root View controller, entrance class is mounted to the Root View controller;
The static weak reference pointer of statement one is directed toward the instance objects of the entrance class, and passes through the static weak reference pointer
Obtain the instance objects;
The instance objects are mounted to the entrance class, generate the shared information of the instance objects;
The submodule for making the Root View controller by the shared information calls the instance objects, and is calling
Cheng Hou, closes the Root View controller and destroys the entrance class and the shared information.
Preferably, it is described the submodule of the Root View controller is called the instance objects by the shared information
The step of, further include:
The shared information is read after the submodule initialization block, to call the instance objects and perform Business Stream
Journey;
The implementing result of the operation flow is back to the submodule.
Preferably, when the implementing result for receiving the submodule transmission is received and successfully instructed, decision sub-module is called
Complete.
Preferably, it is described after the initialization of Root View controller, entrance class is mounted to the step of the Root View controller
After rapid, further include:
Check the carry information of other objects in addition to the Root View controller;
When confirming the entrance class carry being in other objects in addition to the Root View controller, empty it is described enter
Carry of the mouth class on the object.
Preferably, it is described after the initialization of Root View controller, entrance class is mounted to the step of the Root View controller
Before rapid, further include:
Call case method corresponding with the entrance class to collect with incoming parameter set and readjustment, generate the reality of the entrance class
Example object;
Initialize the instance objects of the entrance class.
Preferably, after the step of instance objects of the initialization entrance class, further include:
Receive the initialization directive of the Root View controller and perform the initialization directive.
Preferably, the initialization directive for receiving the Root View controller and the step of perform the initialization directive
Afterwards, further include:
The initialization data of the Root View controller is read, to confirm whether the initialization of the Root View controller holds
Go successfully;
If initialization runs succeeded, perform after the initialization of Root View controller, entrance class is mounted to the Root View
Step on controller;
If initialization performs failure, request interface data, and the instance objects of the entrance class are mounted to described connect
The data service of mouth data.
In addition, to achieve the above object, the present invention also provides a kind of internal memory optimization device, the internal memory optimization device bag
Include:Memory, processor and it is stored in the computer program that can be run on the memory and on the processor, the meter
The step of calculation machine program realizes Memory Optimize Method as described above when being performed by the processor.
The present invention also provides a kind of memory optimizing system, the memory optimizing system realizes memory as described above in application
The step of optimization method.
The present invention also provides a kind of computer-readable recording medium, memory is stored with the computer-readable recording medium
Optimization application, the internal memory optimization application program realize the step of Memory Optimize Method as described above when being executed by processor
Suddenly.
The embodiment of the present invention propose a kind of Memory Optimize Method, by Root View controller initialization after, by entrance
Class is mounted to the Root View controller;The static weak reference pointer of statement one is directed toward the instance objects of the entrance class, and passes through
The static state weak reference pointer obtains the instance objects;The instance objects are mounted to the entrance class, generate the reality
The shared information of example object;The submodule for making the Root View controller by the shared information calls the instance objects,
And after the completion of calling, close the Root View controller and destroy the entrance class and the shared information.By by entrance class
Carry obtains instance objects with static weak reference pointer on Root View controller and calls, and the example pair is destroyed after calling
As realizing the life cycle management of Development of Module, realizing the beneficial effect for facilitating data sharing and destroying in time.
Brief description of the drawings
Fig. 1 be the hardware running environment that the embodiment of the present invention is related to terminal apparatus structure schematic diagram;
Fig. 2 is the flow diagram of Memory Optimize Method first embodiment of the present invention;
Fig. 3 realizes configuration diagram for memory optimizing system of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The primary solutions of the embodiment of the present invention are:After the initialization of Root View controller, entrance class is mounted to institute
State Root View controller;The static weak reference pointer of statement one is directed toward the instance objects of the entrance class, and weak by the static state
Reference pointer obtains the instance objects;The instance objects are mounted to the entrance class, generate being total to for the instance objects
Enjoy information;The submodule for making the Root View controller by the shared information calls the instance objects, and is calling
Cheng Hou, closes the Root View controller and destroys the entrance class and the shared information.
Since the prior art is in business module development process, the long memory that easily produces of business module life cycle is let out
Dew, the problem of causing residual data to pollute cannot be removed in time after application call by thereby resulting in instance data.
The present invention provides a solution, by being called instance objects by weak reference pointer and hanging instance objects
It is loaded in the entrance class of Root View controller and calls, is destroyed after calling.Realize the life cycle management of business module exploitation
Beneficial effect.
As shown in Figure 1, the terminal structure schematic diagram for the hardware running environment that Fig. 1, which is the embodiment of the present invention, to be related to.
Terminal of the embodiment of the present invention can be PC or smart mobile phone, tablet computer, E-book reader, portable
Computer etc. has the packaged type terminal device of display function.
As shown in Figure 1, the terminal can include:Processor 1001, such as CPU, network interface 1004, user interface
1003, memory 1005, communication bus 1002.Wherein, communication bus 1002 is used for realization the connection communication between these components.
User interface 1003 can include display screen (Display), input unit such as keyboard (Keyboard), optional user interface
1003 can also include standard wireline interface and wireless interface.Network interface 1004 can optionally connect including the wired of standard
Mouth, wave point (such as WI-FI interfaces).Memory 1005 can be high-speed RAM memory or the memory of stabilization
(non-volatile memory), such as magnetic disk storage.Memory 1005 optionally can also be independently of aforementioned processor
1001 storage device.
It will be understood by those skilled in the art that the restriction of the terminal structure shown in Fig. 1 not structure paired terminal, can wrap
Include than illustrating more or fewer components, either combine some components or different components arrangement.
As shown in Figure 1, it can lead to as in a kind of memory 1005 of computer-readable storage medium including operating system, network
Believe module, Subscriber Interface Module SIM and internal memory optimization application program.
In the terminal shown in Fig. 1, network interface 1004 is mainly used for connecting background server, is carried out with background server
Data communication;User interface 1003 is mainly used for connecting client (user terminal), with client into row data communication;And processor
1001 can be used for calling the internal memory optimization application program stored in memory 1005, and perform following operation:
After the initialization of Root View controller, entrance class is mounted to the Root View controller;
The static weak reference pointer of statement one is directed toward the instance objects of the entrance class, and passes through the static weak reference pointer
Obtain the instance objects;
The instance objects are mounted to the entrance class, generate the shared information of the instance objects;
The submodule for making the Root View controller by the shared information calls the instance objects, and is calling
Cheng Hou, closes the Root View controller and destroys the entrance class and the shared information.
Further, processor 1001 can call the internal memory optimization application program stored in memory 1005, also perform
Operate below:
The shared information is read after the submodule initialization block, to call the instance objects and perform Business Stream
Journey;
The implementing result of the operation flow is back to the submodule.
Further, processor 1001 can call the internal memory optimization application program stored in memory 1005, also perform
Operate below:
When the implementing result for receiving the submodule transmission is received and successfully instructed, decision sub-module, which is called, to be completed.
Further, processor 1001 can call the internal memory optimization application program stored in memory 1005, also perform
Operate below:
Check the carry information of other objects in addition to the Root View controller;
When confirming the entrance class carry being in other objects in addition to the Root View controller, empty it is described enter
Carry of the mouth class on the object.
Further, processor 1001 can call the internal memory optimization application program stored in memory 1005, also perform
Operate below:
Call case method corresponding with the entrance class to collect with incoming parameter set and readjustment, generate the reality of the entrance class
Example object;
Initialize the instance objects of the entrance class.
Further, processor 1001 can call the internal memory optimization application program stored in memory 1005, also perform
Operate below:
Receive the initialization directive of the Root View controller and perform the initialization directive.
Further, processor 1001 can call the internal memory optimization application program stored in memory 1005, also perform
Operate below:
The initialization data of the Root View controller is read, to confirm whether the initialization of the Root View controller holds
Go successfully;
If initialization runs succeeded, perform after the initialization of Root View controller, entrance class is mounted to the Root View
Step on controller;
If initialization performs failure, request interface data, and the instance objects of the entrance class are mounted to described connect
The data service of mouth data.
With reference to Fig. 2, Fig. 2 is the flow diagram of Memory Optimize Method first embodiment of the present invention, the internal memory optimization side
Method includes:
Step S10, after the initialization of Root View controller, the Root View controller is mounted to by entrance class;
After Root View controller performs initialization operation, default entrance class is hung on the Root View controller,
Wherein, the vc that must call when the Root View controller starts for system, when its practical application, are commonly defined as
NavgationController or tabbarcontroller.On the basis of the Root View controller, the system its
He could eject view.I.e. described Root View controller is basic for the startup of system.And the system, including existing electronic equipment
The system of operation, including the Windows systems of application are calculated, IOS, Android of hand-held mobile terminal application etc..The entrance
Class, in the methods of the invention, is defined as performing the corresponding calling class of instance objects.
Wherein, it is described after the initialization of Root View controller, the step of entrance class is mounted to the Root View controller
Before, further include:
Call case method corresponding with the entrance class to collect with incoming parameter set and readjustment, generate the reality of the entrance class
Example object;
Initialize the instance objects of the entrance class.
When calling corresponding instance objects, based on current process step, corresponding data method is called, to incoming
Parameter set and readjustment collect, and the instance objects of the entrance class are generated with the set of transmission parameters and readjustment collection, and described in generation
After example object, the instance objects of the entrance class are initialized, in addition, the instance objects are based on the generation of entrance class, i.e. institute
Instance objects are stated as the data object under the entrance class.
Afterwards, after the step of instance objects of the initialization entrance class, further include:
Receive the initialization directive of the Root View controller and perform the initialization directive.
Based on the instance objects of the entrance class generated, before the instance objects are called, described of initialization regards
Figure controller.The Root View controller mechanism is wherein triggered, is performed to receive corresponding initialization directive, and it is described initial
Change instruction and carry out self-corresponding trigger flow mechanism, after the initialization directive is received, the Root View controller is performed
Initialization operation.
In addition, the initialization directive for receiving the Root View controller and the step of perform the initialization directive it
Afterwards, further include:
The initialization data of the Root View controller is read, to confirm whether the initialization of the Root View controller holds
Go successfully;
If initialization runs succeeded, perform after the initialization of Root View controller, entrance class is mounted to the Root View
Step on controller;
If initialization performs failure, request interface data, and the instance objects of the entrance class are mounted to described connect
The data service of mouth data.
According to the execution of the Root View initialization operation, confirm whether the Root View controller has initialized success.
Whether verification is described initializes successful mode with view control, including checks the primary data with view control or first
Whether the information such as beginning flow are zeroed, or confirm whether the content of the Root View controller meets initialization standard.By upper
State that Root View controller described in content check initializes as a result, being confirmed whether to initialize successfully.If the Root View controller
Perform after initializing successfully and entrance class is mounted on the Root View controller after Root View controller initialization
Step;If Root View controller initialization failure, request interface data, and by the example object carry of the entrance class
So that submodule calls on to the data service of the interface data.
Further, it is described after the initialization of Root View controller, it is described after the initialization of Root View controller, by entrance
Class was mounted to after the step of Root View controller, was further included:
Check the carry information of other objects in addition to the Root View controller;
When confirming the entrance class carry being in other objects in addition to the Root View controller, empty it is described enter
Carry of the mouth class on the object.
Step S20, the static weak reference pointer of statement one are directed toward the instance objects of the entrance class, and weak by the static state
Reference pointer obtains the instance objects;
Based on the entrance class being mounted on the Root View controller, do not state that one weak is drawn inside the entrance class
With pointer, the instance objects of the entrance class are directed toward.To obtain the content of the instance objects of the entrance class.In practical application
During, pointer definition is a variable, and pointer variable storage is an address, to be directed toward memory storage
Unit.And weak reference is a kind of quoting method in program development process, it is in particular in that weak reference can be returned using rubbish
Device recycling memory is received, think object therewith is then strongly reference.In actual application, by entering described in variable storage direction
For the storage address of mouth class to be directed toward the entrance class, and in direction and acquisition process, the storage address of the weak reference can
To recycle the direction memory using Garbage Collector.
The instance objects are mounted to the entrance class, generate the shared information of the instance objects by step S30;
The instance objects got are mounted to the entrance class, and based on described in the instance objects carry
Entrance class, generates the shared information of the instance objects, wherein, the shared information includes shared data and sharing method, and
The shared data is stored in corresponding data center, by the sharing method carry at corresponding method center, to realize
State the calling of each submodule in Root View controller.Wherein, the shared data is the data of the instance objects, by it
Shared data is generated to call to other submodules.And the sharing method, then to call the sharing method of the instance objects, bag
Shared step, sharing operation mode etc. are included, it is specifically, related to being correspondingly arranged for the shared information, not described here any more.
Step S40, makes the submodule of the Root View controller call the instance objects by the shared information, and
After the completion of calling, close the Root View controller and destroy the entrance class and the shared information.
The submodule is called in shared information of each submodule based on the instance objects, and performs relevant industry
It is engaged in after flow step, closes the Root View controller, and destroys the entrance class and stored shared information, wherein,
When destroying the entrance class, instance objects of the carry in the entrance class are destroyed in the lump.
Further, submodule calls the instance objects are i.e. described to control the Root View by the shared information
The submodule of device calls the step of instance objects, further includes:
The shared information is read after the submodule initialization block, to call the instance objects and perform Business Stream
Journey;
The implementing result of the operation flow is back to the submodule.
Based on the shared information of the instance objects generated, in the submodule of corresponding flow, based on current
Invocation step perform the initialization flow of the submodule, and after the initialization flow of each submodule is finished,
The instance objects are called with the shared information and perform the correspondence Business Stream of the instance objects, and are held in the Business Stream
After the completion of row, the implementing result is adjusted back to corresponding each submodule.Each submodule, for based on the submodule
Call the object of the instance objects.
In addition, when the implementing result for receiving the submodule transmission is received and successfully instructed, decision sub-module has been called
Into.
Before the Root View controller is closed, the reception returned based on the submodule need to be received and successfully instructed,
Described receive successfully instructs, to call the instance objects based on the submodule and performing Business Stream, by the Business Stream
Implementing result is back to the corresponding submodule.After the submodule receives the implementing result, return receives successfully
Instruction.Successfully instructed according to the reception received, confirm that the life management cycle of the business module has completed, based on described complete
The Root View controller is closed into operation, and the entrance class and sharing method are destroyed in the lump, and the entrance class is also wrapped
The instance objects of carry are included, the shared information includes shared data and data center, sharing method and method center.
In the present embodiment, instance objects and the acquisition of entrance class are directed toward by weak reference pointer, by the instance objects
Carry generates shared information so that each submodule calls after the entrance class, and closes the Root View on invocation
Controller destroys entrance class and shared information, realizes the life cycle relation of operation flow, and avoid due to data destroying
Caused by residual data pollute, realize eliminate business module in data sharing and destruction beneficial effect.
In addition, the embodiment of the present invention also proposes a kind of computer-readable recording medium, the computer-readable recording medium
On be stored with internal memory optimization application program, following operation is realized when the internal memory optimization application program is executed by processor:
After the initialization of Root View controller, entrance class is mounted to the Root View controller;
The static weak reference pointer of statement one is directed toward the instance objects of the entrance class, and passes through the static weak reference pointer
Obtain the instance objects;
The instance objects are mounted to the entrance class, generate the shared information of the instance objects;
The submodule for making the Root View controller by the shared information calls the instance objects, and is calling
Cheng Hou, closes the Root View controller and destroys the entrance class and the shared information.
Further, following operation is also realized when the internal memory optimization application program is executed by processor:
The shared information is read after the submodule initialization block, to call the instance objects and perform Business Stream
Journey;
The implementing result of the operation flow is back to the submodule.
Further, following operation is also realized when the internal memory optimization application program is executed by processor:
When the implementing result for receiving the submodule transmission is received and successfully instructed, decision sub-module, which is called, to be completed.
Further, following operation is also realized when the internal memory optimization application program is executed by processor:
Check the carry information of other objects in addition to the Root View controller;
When confirming the entrance class carry being in other objects in addition to the Root View controller, empty it is described enter
Carry of the mouth class on the object.
Further, following operation is also realized when the internal memory optimization application program is executed by processor:
Call case method corresponding with the entrance class to collect with incoming parameter set and readjustment, generate the reality of the entrance class
Example object;
Initialize the instance objects of the entrance class.
Further, following operation is also realized when the internal memory optimization application program is executed by processor:
Receive the initialization directive of the Root View controller and perform the initialization directive.
Further, following operation is also realized when the internal memory optimization application program is executed by processor:
The initialization data of the Root View controller is read, to confirm whether the initialization of the Root View controller holds
Go successfully;
If initialization runs succeeded, perform after the initialization of Root View controller, entrance class is mounted to the Root View
Step on controller;
If initialization performs failure, request interface data, and the instance objects of the entrance class are mounted to described connect
The data service of mouth data.
In addition, the present invention also proposes a kind of memory optimizing system, the framework of the memory optimizing system refers to Fig. 3, Fig. 3
For the configuration diagram of realizing of memory optimizing system of the present invention, including open part, privately owned part and intra-sharing part, its institute
State the specific implementation process of system architecture, the content of the embodiment of Memory Optimize Method as described above.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property includes, so that process, method, article or system including a series of elements not only include those key elements, and
And other elements that are not explicitly listed are further included, or further include as this process, method, article or system institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Also there are other identical element in the process of key element, method, article or system.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on such understanding, technical scheme substantially in other words does the prior art
Going out the part of contribution can be embodied in the form of software product, which is stored in one as described above
In storage medium (such as ROM/RAM, magnetic disc, CD), including some instructions use so that a station terminal equipment (can be mobile phone,
Computer, server, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair
The equivalent structure or equivalent flow shift that bright specification and accompanying drawing content are made, is directly or indirectly used in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of Memory Optimize Method, it is characterised in that the Memory Optimize Method comprises the following steps:
After the initialization of Root View controller, entrance class is mounted to the Root View controller;
The static weak reference pointer of statement one is directed toward the instance objects of the entrance class, and is obtained by the static weak reference pointer
The instance objects;
The instance objects are mounted to the entrance class, generate the shared information of the instance objects;
The submodule of the Root View controller is called the instance objects by the shared information, and completed calling
Afterwards, close the Root View controller and destroy the entrance class and the shared information.
2. the optimization method of the memory of business module as claimed in claim 1, it is characterised in that described to pass through the shared letter
The step of breath makes the submodule of the Root View controller call the instance objects, further include:
The shared information is read after the submodule initialization block, to call the instance objects and perform operation flow;
The implementing result of the operation flow is back to the submodule.
3. Memory Optimize Method as claimed in claim 1, it is characterised in that receiving the execution knot of the submodule transmission
Fruit receives when successfully instructing, and decision sub-module, which is called, to be completed.
4. Memory Optimize Method as claimed in claim 1, it is characterised in that it is described after the initialization of Root View controller, will
Entrance class was mounted to after the step of Root View controller, was further included:
Check the carry information of other objects in addition to the Root View controller;
When carry is in other objects in addition to the Root View controller for the confirmation entrance class, the entrance class is emptied
Carry on the object.
5. Memory Optimize Method as claimed in claim 1, it is characterised in that it is described after the initialization of Root View controller, it will enter
Before the step of mouth class is mounted to the Root View controller, further include:
Call case method corresponding with the entrance class to collect with incoming parameter set and readjustment, generate the example pair of the entrance class
As;
Initialize the instance objects of the entrance class.
6. Memory Optimize Method as claimed in claim 5, it is characterised in that the instance objects of the initialization entrance class
After step, further include:
Receive the initialization directive of the Root View controller and perform the initialization directive.
7. Memory Optimize Method as claimed in claim 6, it is characterised in that described to receive the initial of the Root View controller
After changing the step of instructing and performing the initialization directive, further include:
The initialization data of the Root View controller is read, to confirm whether the initialization of the Root View controller performs into
Work(;
If initialization runs succeeded, perform after the initialization of Root View controller, entrance class is mounted to the Root View controls
Step on device;
If initialization performs failure, request interface data, and the instance objects of the entrance class are mounted to the number of ports
According to data service.
8. a kind of internal memory optimization device, it is characterised in that the internal memory optimization device includes:Memory, processor and it is stored in
On the memory and the computer program that can run on the processor, the computer program are performed by the processor
Shi Shixian is as any one of claim 1 to 5 the step of Memory Optimize Method.
9. a kind of memory optimizing system, it is characterised in that the memory optimizing system is included such as any one of claim 1 to 7
The step of described Memory Optimize Method.
10. a kind of computer-readable recording medium, it is characterised in that it is excellent to be stored with memory on the computer-readable recording medium
Change application program, realized when the internal memory optimization application program is executed by processor in as any one of claim 1 to 7
The step of depositing optimization method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711178394.XA CN108021445B (en) | 2017-11-22 | 2017-11-22 | Memory optimization method, device and system and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711178394.XA CN108021445B (en) | 2017-11-22 | 2017-11-22 | Memory optimization method, device and system and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108021445A true CN108021445A (en) | 2018-05-11 |
CN108021445B CN108021445B (en) | 2021-12-28 |
Family
ID=62080027
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711178394.XA Active CN108021445B (en) | 2017-11-22 | 2017-11-22 | Memory optimization method, device and system and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108021445B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109144750A (en) * | 2018-08-21 | 2019-01-04 | 武汉斗鱼网络科技有限公司 | A kind of message treatment method, device, electronic equipment and storage medium |
CN109302639A (en) * | 2018-09-30 | 2019-02-01 | 武汉斗鱼网络科技有限公司 | A kind of distribution method, device, terminal and the storage medium of barrage message |
CN110457152A (en) * | 2019-07-11 | 2019-11-15 | 贵阳语玩科技有限公司 | A kind of system and method solving RAM leakage with proxy mode |
CN111104121A (en) * | 2019-12-20 | 2020-05-05 | 北京字节跳动网络技术有限公司 | Detection method, device, equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6636901B2 (en) * | 1998-01-30 | 2003-10-21 | Object Technology Licensing Corp. | Object-oriented resource lock and entry register |
US20100114999A1 (en) * | 2008-10-31 | 2010-05-06 | International Business Machines Corporation | Method and System to Space-Efficiently Track Memory Access of Object-Oriented Language in Presence of Garbage Collection |
CN106201742A (en) * | 2016-07-04 | 2016-12-07 | 沈阳东软医疗系统有限公司 | A kind of shared-memory management method, Apparatus and system |
CN106528255A (en) * | 2016-12-19 | 2017-03-22 | 北京小米移动软件有限公司 | Class loading method and device |
-
2017
- 2017-11-22 CN CN201711178394.XA patent/CN108021445B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6636901B2 (en) * | 1998-01-30 | 2003-10-21 | Object Technology Licensing Corp. | Object-oriented resource lock and entry register |
US20100114999A1 (en) * | 2008-10-31 | 2010-05-06 | International Business Machines Corporation | Method and System to Space-Efficiently Track Memory Access of Object-Oriented Language in Presence of Garbage Collection |
CN106201742A (en) * | 2016-07-04 | 2016-12-07 | 沈阳东软医疗系统有限公司 | A kind of shared-memory management method, Apparatus and system |
CN106528255A (en) * | 2016-12-19 | 2017-03-22 | 北京小米移动软件有限公司 | Class loading method and device |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109144750A (en) * | 2018-08-21 | 2019-01-04 | 武汉斗鱼网络科技有限公司 | A kind of message treatment method, device, electronic equipment and storage medium |
CN109144750B (en) * | 2018-08-21 | 2021-06-15 | 武汉斗鱼网络科技有限公司 | Message processing method and device, electronic equipment and storage medium |
CN109302639A (en) * | 2018-09-30 | 2019-02-01 | 武汉斗鱼网络科技有限公司 | A kind of distribution method, device, terminal and the storage medium of barrage message |
CN110457152A (en) * | 2019-07-11 | 2019-11-15 | 贵阳语玩科技有限公司 | A kind of system and method solving RAM leakage with proxy mode |
CN111104121A (en) * | 2019-12-20 | 2020-05-05 | 北京字节跳动网络技术有限公司 | Detection method, device, equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108021445B (en) | 2021-12-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108021445A (en) | Memory Optimize Method, device, system and computer-readable recording medium | |
CN107153961A (en) | A kind of method of payment, paying server, trading server and readable storage medium storing program for executing | |
US20160210632A1 (en) | Secured payment method and relevant device and system | |
CN107203794B (en) | A kind of information scanning identifying system and method, end of scan | |
CN107276789A (en) | Daily record method for uploading, device and computer-readable recording medium | |
CN107908485A (en) | Interface parameters transmission method, device, equipment and computer-readable recording medium | |
CN104038605A (en) | Phone point of sale (POS) payment terminal transaction testing method | |
CN109872042A (en) | House prosperity transaction monitoring and managing method, device, equipment and storage medium based on block chain | |
CN104917586A (en) | Verification method, device and system of transmitted data | |
CN107577622A (en) | Back end interface analogy method, equipment and storage medium | |
CN110766167B (en) | Interactive feature selection method, device and readable storage medium | |
CN104618316A (en) | Method, device and system of safety verification | |
CN108075899A (en) | A kind of auth method, mobile terminal and computer readable storage medium | |
CN106445344A (en) | Screenshot processing method and device | |
CN105337933A (en) | Method and system for creating sub-account, primary account device and sub-account device | |
CN107861765A (en) | Product configuration method, equipment and computer-readable recording medium | |
CN100413359C (en) | Mobile terminal and starting method thereof | |
CN106293876A (en) | Information authentication method based on virtual reality scenario and device | |
CN107291460A (en) | Television terminal and compiler server code control method and storage medium | |
CN204926177U (en) | System for realize punching card through identification code | |
CN104270342B (en) | The access method and system of virtual desktop | |
CN105138373A (en) | Vehicle diagnosis device firmware upgrading method and device | |
CN105631720A (en) | Distributed mobile invoicing and management system and method | |
CN108712298A (en) | Upgrading network equipment method, apparatus, the network equipment and storage medium | |
CN110597492B (en) | Module calling method and related products |
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 |