Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Memory optimization method, apparatus and system, and computer readable storage medium

An optimization method and memory technology, applied in computing, multi-programming device, program control design, etc., can solve problems such as instance objects cannot be destroyed, business modules cannot realize self-service management of business life cycle, etc.

Active Publication Date: 2018-05-11
GUANGZHOU PINWEI SOFTWARE
View PDF4 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The main purpose of the present invention is to provide a memory optimization method, which aims to solve the technical problem that the instance object cannot be destroyed when the business module of the existing architecture scheme cannot realize the self-service management of the business life cycle during the program development process of the prior art

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Memory optimization method, apparatus and system, and computer readable storage medium
  • Memory optimization method, apparatus and system, and computer readable storage medium
  • Memory optimization method, apparatus and system, and computer readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.

[0035] The main solutions of the embodiments of the present invention are: after the root view controller is initialized, mount the entry class to the root view controller; declare a static weak reference pointer to point to the instance object of the entry class, and pass the The static weak reference pointer obtains the instance object; mounts the instance object to the entry class, and generates shared information of the instance object; causes the submodule of the root view controller to call the instance object, and after the call is completed, the root view controller is closed to destroy the entry class and the shared information.

[0036] During the development process of the business module in the prior art, the long life cycle of the business module is prone to memory leakage, which causes the problem ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a memory optimization method. The method comprises the steps of mounting an entry class to a root view controller after the root view controller is initialized; declaring a static weak reference pointer to point to an instance object of the entry class, and through the static weak reference pointer, obtaining the instance object; mounting the instance object to the entry class, and generating shared information of the instance object; and through the shared information, enabling a sub-module of the root view controller to call the instance object, and after the call isfinished, disabling the root view controller and destroying the entry class and the shared information. The invention furthermore discloses a memory optimization apparatus and system, and a computer readable storage medium. By self-defining enabling and disabling of a life cycle of a business process, the beneficial effect of managing the life cycle of the business process is achieved.

Description

technical field [0001] The present invention relates to the field of program development, and in particular, to a memory optimization method, device and computer-readable storage medium. Background technique [0002] In iOS client development, with the continuous growth of user volume and business volume, the app architecture is constantly being upgraded, and it is becoming more and more componentized for services and business modularization. However, the current so-called business modules are relatively independent in terms of code encapsulation and code file management, but are not truly independent in terms of memory management. There is still interdependence between the memory instances of each business module, so there will be mainly business The module life cycle is too long, which is prone to memory leaks. Because most of the object instances in the business module are hosted on the caller, or on an internal static strong reference object instance, or even on a singl...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/50G06F8/34
CPCG06F8/34G06F9/5022
Inventor 甄健鹏
Owner GUANGZHOU PINWEI SOFTWARE
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products