Design method for improving software performance and software stability
Through layered design and specific interface coordination, the problems of insufficient software resource utilization and insufficient stability are solved, and software performance and stability are improved. It is suitable for health information and other software fields.
Patent Information
- Application Number
- CN202510902965.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-01
- Publication Date
- 2025-10-14
AI Technical Summary
Existing software design methods are unable to effectively coordinate complex core content, resulting in insufficient resource utilization and insufficient stability. Especially in the field of health information, the software is prone to crash due to misoperation or special environment, affecting the normal provision of services.
A layered design is adopted, and the core content of the software is divided into the basic layer, database layer, file management layer and network port layer. Each layer runs independently and is started through a unified entrance. Organic serial numbers and core business sorting are set, and specific interfaces such as ITypeFinder and IRsStartup are designed to coordinate function calls to ensure efficient collaboration among all layers.
The software performance and stability are improved, and each layer runs independently without affecting each other, reducing the risk of crashes. It is suitable for the field of health information and can be extended to all software fields.
Smart Images

Figure CN120780276A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of software development, in particular to a design method for improving software performance and stability. BACKGROUND
[0002] The performance and stability of software are key factors in measuring software quality. In practical applications, resource shortages and software instability frequently occur, leading to potential safety hazards in software quality. In particular, in the service field, such as the health information field, once the software crashes due to misoperation or special environment, it will seriously affect the normal provision of services.
[0003] The health information field involves many participants, such as medical personnel, management personnel, regulatory agencies, patients, etc., and its software system covers infrastructure (use of hardware resources), databases (data collection, governance, statistical analysis, prediction, etc.), networks (transmission efficiency, transmission method, operation efficiency, etc.), and complex business programs and algorithms. The existing software design method is difficult to effectively coordinate these complex core contents, and there are deficiencies in resource utilization and stability protection. SUMMARY
[0004] The present application aims to provide a design method for improving software performance and stability, ensuring that the software will not crash due to misoperation or special environment under limited resource conditions, and protecting the normal use of software.
[0005] To achieve the above-mentioned purpose, the present application provides the following technical solutions:
[0006] A design method for improving software performance and stability, comprising the following steps:
[0007] Layered design step:
[0008] Layering the software core content according to the functionality of the software, the software core content including infrastructure, database, network, business program; after layering, forming a basic layer, a database layer, a file management layer, a network port layer, a path management layer, each layer not affecting each other;
[0009] Organic serial number allocation step:
[0010] Assign an organic serial number to each layer;
[0011] Uniform entry start step:
[0012] Set a uniform entry, start the business of each layer through the entry;
[0013] Core business sorting start step:
[0014] The core service is started according to the organic serial number assigned in actual situation to ensure that each layer can normally run.
[0015] Further, the software initial end setting engine, i.e. a general control panel, is responsible for receiving various requests and service processing, calling corresponding search methods according to request types, coordinating and managing various function calls of the interface, and ensuring that the interface can efficiently and accurately complete corresponding operations.
[0016] Further, the interface design step further includes:
[0017] The ITypeFinder interface is designed, which has the functions of searching all classes of a specific type, obtaining all assemblies, and obtaining an assembly according to a name, and specifically includes the FindClassesOfType method for searching all classes of a specific type, the GetAssemblie method for obtaining all assemblies, and the GetAssemblyByName method for obtaining an assembly according to a name.
[0018] The IRsStartup interface is designed, which has the methods of configuring services, configuring applications, and defining the order attribute, and specifically includes the ConfigureServices method for configuring services required by the software, the Configure method for configuring related parameters of the application, and the Order attribute for determining the startup order of each layer or module by implementing the interface for different layers or modules and setting the Order attribute value.
[0019] Further, the specific functions and implementations of each layer are as follows:
[0020] The basic layer includes a general startup module, which is responsible for the startup and initialization of basic functions of the software, including memory allocation and thread management.
[0021] The database layer is provided with a database startup module to ensure normal connection and data interaction of the database, including connecting to a database server and establishing a data connection pool.
[0022] The file management layer is provided with a file parsing startup module to correctly parse files according to different file formats by calling corresponding parsing algorithms.
[0023] The network port layer is equipped with a network endpoint module to ensure efficient and stable network connection, and configure network transmission parameters, including transmission protocols and port numbers.
[0024] The path management layer manages the path logic of software running through a path routing startup module, and defines path rules of software running according to business requirements.
[0025] Further, the method can be applied to health information software, in which various layers work together to achieve stable and efficient software operation, involving numerous participants including medical staff, management personnel, regulatory agencies, and patients, covering core content such as infrastructure, database, network, and complex business programs and algorithms.
[0026] Further, the method can be applied to all software fields.
[0027] The design method for improving software performance and stability of the present application has the following beneficial effects:
[0028] Improving software performance: through layered design, each layer focuses on its own function, reducing functional coupling and improving resource utilization efficiency, thereby improving the overall performance of the software.
[0029] Enhancing software stability: each layer runs independently and does not affect each other, even if a layer has a problem, it will not easily spread to other layers, reducing the risk of software crashes and enhancing the stability of the software.
[0030] Generalizability: the design method is not only suitable for software in the medical service industry, but also can be applied to all software fields, with wide applicability. BRIEF DESCRIPTION OF DRAWINGS
[0031] Figure 1 The figure is a schematic diagram of the implementation process of the design method for improving software performance and stability in the present application. DETAILED DESCRIPTION
[0032] To make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all embodiments. The components of the embodiments of the present application described and shown in the drawings herein can be arranged and designed in various different configurations.
[0033] Embodiment:
[0034] The embodiment provides a design method for improving software performance and stability, which is based on the design idea of "layer" and divides software core content such as infrastructure, database, network, business program and the like into layers, allocates an organic serial number to each layer, starts the business of each layer through a unified entrance, and starts the core business according to the organic serial number, so as to ensure the normal operation of each layer; meanwhile, a specific interface is designed to realize the interaction and cooperation between layers, so as to improve the software performance and stability, and the method can be applied to software in the field of health information and can be popularized to all software fields.
[0035] Specific implementation steps
[0036] (I) Layered design
[0037] According to the functionality of software, the software core content is layered, and taking software in the field of health information as an example, the layers are as follows:
[0038] The basic layer is responsible for the start initialization of the basic function of software and comprises a general start module; the module can realize memory allocation and thread management operation, and provides a basic environment support for the subsequent operation of software; when the software starts, the general start module can reasonably allocate memory space according to the system resource condition, initialize the necessary thread pool, and ensure that the software can be normally loaded and run.
[0039] The database layer guarantees the normal connection and data interaction of the database and is provided with a database start module; the module can connect the database server and establish a data connection pool; in the health information system, the database start module can be connected to the corresponding database server according to the configuration information, create a certain number of database connections and put them into the connection pool, acquire the available connection from the connection pool when the software needs to access the database, and return the connection after use, so as to improve the database access efficiency.
[0040] The file management layer realizes the correct parsing of files and is provided with a file parsing start module; the module can call the corresponding parsing algorithm according to different file formats; in the health field, various medical files such as medical record files and examination report files can be processed, the file parsing start module can identify the file format and call the corresponding parsing algorithm to parse the file content into a data structure that can be processed by software.
[0041] The network port layer ensures the efficient and stable network connection and is provided with a network endpoint module; the module can configure network transmission parameters including transmission protocol and port number; in the health information system, the network port layer is responsible for network communication with other systems in the hospital and external regulatory agencies, and through reasonable configuration of the transmission protocol and port number, the stability and efficiency of data transmission are guaranteed.
[0042] Path management layer: manage the path logic of software running, define the path rules of software running according to business requirements through path routing start module; in the health information system, define the software running path of different business links according to the patient's treatment process, and ensure the correct flow of business process.
[0043] (ii) Engine and interface design
[0044] Engine (IEngine)
[0045] Software initial end setting engine, that is, a general control panel, is responsible for receiving various requests and business processing, calling corresponding search methods according to request types, coordinating and managing the function calls of interfaces, and ensuring that the interface can efficiently and accurately complete corresponding operations.
[0046] ITypeFinder interface
[0047] FindClassesOfType method: used to find all classes of a specific type; in software development, when some classes of a specific type need to be dynamically loaded, this method can be used; in the health information system, all classes that implement a specific data interface need to be found in order to process and store data.
[0048] GetAssemblie method: used to obtain all program sets; in software extension or modular management, all program sets loaded by the current software can be obtained through this method, which facilitates the management and calling of program sets.
[0049] GetAssemblyByName method: used to obtain a program set according to a name; when the software needs to load a program set according to a specific name, this method can be used.
[0050] IRsStartup interface
[0051] ConfigureServices method: used to configure the services required by the software; in the health information system, database services, log services, and cache services can be configured in this method to provide necessary service support for the normal operation of the software.
[0052] Configure method: used to configure the relevant parameters of the application, including configuring the running mode, log level, and network timeout time parameters of the software.
[0053] Order attribute: (Int is a type, which is convenient for setting the order of startup, and the attribute is Order behind), by implementing this interface for different layers or modules and setting the Order attribute value, the startup order of each layer or module can be determined.
[0054] Among them, the engine corresponds to the total control panel, and ITypeFinder corresponds to the detector;
[0055] First start the engine, and then use the ITypeFinder detector in the engine to find the service interface started by each layer.
[0056] (Three) Assign organic sequence numbers and start with a unified entrance
[0057] Assign an organic sequence number to each layer, which can be set according to the importance of each layer, dependency factors; the basic layer as the basis of software running can be assigned a smaller sequence number to ensure its priority start.
[0058] Set a unified entrance to start each layer of business through the entrance; when the software starts, the unified entrance will call the start-up module of each layer in turn according to the organic sequence number of each layer.
[0059] (Four) Core business sequence start
[0060] The core business is started in sequence according to the assigned organic sequence number according to the actual situation; the basic layer is started first, and after the completion of the basic environment initialization, the database layer is started to establish the database connection; after the successful start of the database layer, the file management layer is started to perform file parsing related initialization; then the network port layer is started to establish network connection; finally, the path management layer is started to define the software running path rules; through this orderly start-up mode, it ensures that each layer can run normally, and avoids the failure or abnormal running caused by the unsatisfied dependency relationship.
[0061] Three, application scenario example
[0062] (One) Health information field
[0063] In the health information system, each layer works together.
[0064] The basic layer initializes system resources to provide a running environment for subsequent layers; the database layer connects the database to store and retrieve patient information and medical record data; the file management layer processes the parsing and storage of various medical files; the network port layer interacts with other systems (registration system, examination equipment system) within the hospital and external regulatory agencies; the path management layer guides the software to switch correctly between different business links according to the patient's treatment process. Through this design method, the performance and stability of the health information system are improved, ensuring that the system can still run normally under the condition of a large amount of patient data and high concurrency, providing strong support for medical services.
[0065] (Two) Other software fields
[0066] For general office software, this design method can also be used.
[0067] The software is divided into a basic layer (responsible for system resource initialization), a data layer (managing document data, user configuration data), a function module layer (word processing module, table processing module), and an interface layer (providing a user interactive interface). Through layered design, interface implementation, and orderly startup, the performance and stability of the office software are improved, and the risk of software crashes and data loss is reduced.
[0068] The above specific embodiments elaborate on the implementation process and application scenarios of the design method for improving software performance and software stability. Through this method, the quality and reliability of the software can be effectively improved.
[0069] The above describes the present application and its embodiments, which are not restrictive. The embodiments shown in the drawings are only one of the embodiments of the present application, and the actual structure is not limited thereto. In summary, if a person skilled in the art is inspired by this, without departing from the purpose of the present application, without creative design, similar structure and embodiments of the technical solution should belong to the protection scope of the present application.
Claims
1. A design method for improving software performance and software stability, characterized in that: The following steps are involved: Layered design steps: The core content of the software is layered according to its functionality. The core content of the software includes infrastructure, database, network, and business procedures. After layering, the basic layer, database layer, file management layer, network port layer, and path management layer are formed, and each layer does not affect each other. Steps for assigning organic serial numbers: Assign an organic sequence number to each layer; Unified entry startup steps: Set up a unified entrance to start services at all levels; Core business sorting startup steps: Core businesses are started in sequence according to the assigned organic sequence numbers based on actual conditions to ensure the normal operation of each layer.
2. The design method for improving software performance and software stability according to claim 1, characterized in that: The software's initial setup engine is a general control panel responsible for receiving various requests and business processing, calling the corresponding search method according to the request type, coordinating and managing the various function calls of the interface, and ensuring that the interface can complete the corresponding operations efficiently and accurately.
3. The design method for improving software performance and software stability according to claim 1, characterized in that: Also includes interface design steps: Design the ITypeFinder interface, which has the functions of finding all classes of a specific type, getting all assemblies, and getting an assembly by name. Specifically, it includes the FindClassesOfType method for finding all classes of a specific type, the GetAssemblie method for getting all assemblies, and the GetAssemblyByName method for getting an assembly by name. Design the IRsStartup interface, which has methods for configuring services, methods for configuring applications, and properties for defining the startup order. Specifically, it includes the ConfigureServices method for configuring the services required by the software, the Configure method for configuring the relevant parameters of the application, and the Order property. By implementing this interface for different layers or modules and setting the Order property value, the startup order of each layer or module can be determined.
4. The design method for improving software performance and software stability according to claim 1, characterized in that: The specific functions and implementations of each layer are as follows: Basic layer: Contains a general startup module, responsible for the startup initialization of basic software functions, including memory allocation and thread management; Database layer: It has a database startup module to ensure the normal connection and data interaction of the database, including connecting to the database server and establishing a data connection pool; File management layer: Set the file parsing startup module to achieve correct file parsing and call the corresponding parsing algorithm according to different file formats; Network port layer: equipped with network endpoint modules to ensure efficient and stable network connections and configure network transmission parameters, including transmission protocols and port numbers; Path management layer: Starts the module through path routing, manages the path logic of software operation, and defines the path rules of software operation according to business needs.
5. The design method for improving software performance and software stability according to claim 1, characterized in that: This method can be applied to software in the field of health information. In software in the field of health information, various layers work together to achieve stable and efficient operation of the software, involving many participants including medical staff, managers, regulatory agencies, and patients. The core content covered includes infrastructure, databases, networks, and complex business procedures and algorithms. The infrastructure is the use of hardware resources, the database includes data collection, governance, statistical analysis, and prediction, and the network includes transmission efficiency, transmission mode, and operational efficiency.
6. The design method for improving software performance and software stability according to claim 1, characterized in that: This method can be extended and applied to all software fields.