Operation method and apparatus for input method program, and electronic device and storage medium

By obtaining and preloading the virtual address of the dictionary data before the input method program is executed, the problem of emptying the dictionary data caused by tight memory resources is solved, achieving smoother and more stable operation of the input method program, and reducing the risk of page fault interruption. Influence.

WO2024222525A1PCT designated stage expired Publication Date: 2024-10-31BEIJING ZITIAO NETWORK TECH CO LTD

Patent Information

Application Number
PCT/CN2024/088042
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-23
Filing Date
2024-04-16
Publication Date
2024-10-31

AI Technical Summary

Technical Problem

When the memory resources of existing input method programs are tight, the vocabulary data is cleared, which affects the running fluency and stability of the input method program. In addition, the time consumption of calling the vocabulary data increases due to page fault interruption.

Method used

Before executing the input function of the input method program, obtain and load the virtual address of the lexicon data, preload the lexicon data into the kernel space to avoid page missing interruptions, and use file mapping to quickly obtain the required data.

Benefits of technology

It improves the running fluency and stability of the input method program, reduces the overall time-consuming when calling the dictionary data, and avoids lags caused by memory clearing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024088042_31102024_PF_FP_ABST
    Figure CN2024088042_31102024_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the embodiments of the present disclosure are an operation method and apparatus for an input method program , and an electronic device and a storage medium. The method comprises: before executing an input function of an input method program, acquiring a virtual address corresponding to lexicon data which is required to execute the input function; loading the lexicon data into a kernel space corresponding to the virtual address; and in response to a user instruction, calling target lexicon data in the kernel space, so as to execute the input function, which corresponds to the user instruction, in the input method program.
Need to check novelty before this filing date? Find Prior Art

Description

Input method program running method, device, electronic device and storage medium

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application is based on and claims priority to an application filed in China with application number 2023104414908, filed on April 23, 2023. The disclosure of the application is hereby incorporated as a whole into this application. Technical Field

[0003] The embodiments of the present disclosure relate to the field of computer technology, and in particular to an input method program running method, device, electronic device, and storage medium. Background Art

[0004] Input method programs are one of the commonly used programs used for human-computer interaction and information exchange between users. In order to improve input efficiency, current input method programs are usually equipped with a large amount of vocabulary data. By using the word information provided by the vocabulary data, input functions such as spelling, word formation, and error correction can be realized.

[0005] Summary of the Invention

[0006] Embodiments of the present disclosure provide an input method program running method, device, electronic device, and storage medium.

[0007] In a first aspect, an embodiment of the present disclosure provides a method for running an input method program, comprising:

[0008] Before executing the input function of the input method program, obtain the virtual address corresponding to the vocabulary data required to execute the input function; load the vocabulary data into the kernel space corresponding to the virtual address; and in response to user instructions, call the target vocabulary data in the kernel space to execute the input function corresponding to the user instruction in the input method program.

[0009] In a second aspect, an embodiment of the present disclosure provides an input method program running device, comprising:

[0010] An acquisition module, used for acquiring a virtual address corresponding to the vocabulary data required to execute the input function before executing the input function of the input method program;

[0011] A loading module, configured to load the vocabulary data into the kernel space corresponding to the virtual address;

[0012] The calling module is used to call the target vocabulary data in the kernel space in response to the user instruction to execute the input function corresponding to the user instruction in the input method program.

[0013] In a third aspect, an embodiment of the present disclosure provides an electronic device, including:

[0014] a processor, and a memory communicatively connected to the processor;

[0015] The memory stores computer-executable instructions;

[0016] The processor executes the computer-executable instructions stored in the memory to implement the input method program running method described in the first aspect and various possible designs of the first aspect.

[0017] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, in which computer execution instructions are stored. When a processor executes the computer execution instructions, the input method program running method described in the first aspect and various possible designs of the first aspect is implemented.

[0018] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the input method program running method described in the first aspect and various possible designs of the first aspect.

[0019] The input method program running method, device, electronic device and storage medium provided in this embodiment obtain the virtual address corresponding to the vocabulary data required to execute the input function of the input method program before executing the input function of the input method program; load the vocabulary data into the kernel space corresponding to the virtual address; and call the target vocabulary data in the kernel space in response to user instructions to execute the input function corresponding to the user instructions in the input method program. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure or related technologies, the following is a brief introduction to the drawings required for use in the embodiments or related technical descriptions. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0021] FIG1 is a schematic diagram of an execution process of an input method program provided by an embodiment of the present disclosure;

[0022] FIG2 is a flow chart of a method for running an input method program according to an embodiment of the present disclosure;

[0023] FIG3 is a flow chart of a specific implementation of step S101 in the embodiment shown in FIG2 ;

[0024] FIG4 is a schematic diagram of a process for obtaining a virtual address of vocabulary data according to an embodiment of the present disclosure;

[0025] FIG5 is a flowchart of a specific implementation of step S102 in the embodiment shown in FIG2 ;

[0026] FIG6 is a schematic diagram of a process of executing an input function provided by an embodiment of the present disclosure;

[0027] FIG7 is a second flow chart of the method for running an input method program provided by an embodiment of the present disclosure;

[0028] FIG8 is a flowchart of a specific implementation of step S202 in the embodiment shown in FIG7 ;

[0029] FIG9 is a schematic diagram of a process for determining missing data provided by an embodiment of the present disclosure;

[0030] FIG10 is a flowchart of a specific implementation of step S204 in the embodiment shown in FIG7 ;

[0031] FIG11 is a structural block diagram of an input method program running device provided by an embodiment of the present disclosure;

[0032] FIG12 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure;

[0033] FIG13 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0034] To make the objectives, technical solutions, and advantages of the embodiments of the present disclosure more clear, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present disclosure without making any creative efforts shall fall within the scope of protection of the present disclosure.

[0035] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0036] The following explains the application scenarios of the embodiments of the present disclosure:

[0037] The input method program running method provided by the embodiment of the present disclosure can be applied to the scenario of calling the input method program to input information. Specifically, the method provided by the embodiment of the present disclosure can be applied to a terminal device. FIG1 is a schematic diagram of the execution process of an input method program provided by the embodiment of the present disclosure. As shown in FIG1 , the disk space (hard disk) of the terminal device stores the vocabulary file of the input method program. After the terminal device starts the input method program, the vocabulary data in the vocabulary file on the disk is copied to the kernel space in the memory. After that, a mapping relationship between the user space and the disk space is established. When the input function of the input method program is executed and the vocabulary data is needed, the vocabulary data corresponding to the vocabulary file is obtained from the kernel space through the page table, that is, the vocabulary data is loaded in the form of file mapping. Afterwards, in response to user instructions, the vocabulary data is used to complete the execution of the input function, such as realizing the input functions of the input method program such as spelling, composition, and error correction.

[0038] In the related art, for the technical solution of loading the vocabulary data in the file mapping mode, after the vocabulary data is copied to the kernel space, the kernel space can be used to realize the data cache feature, so that the vocabulary data can be quickly retrieved. However, on the other hand, since the kernel space is shared by all processes, when the input method program is in the background idle state, the operating system will recycle the resources of the kernel space, resulting in the vocabulary data stored in the kernel space (physical memory) being cleared. When the input method program is called up again to perform the input function, the input method program (the corresponding thread) accesses the vocabulary data on the physical page through the virtual address that has been mapped. At this time, due to the lack of vocabulary data on the corresponding physical page accessed by the virtual address, the memory management unit of the central processing unit (CPU) issues an interrupt instruction, i.e., a page fault interrupt occurs. When a page fault interrupt occurs, the operating system needs to re-read the vocabulary file from the disk to obtain the vocabulary data, and re-copy it to the kernel space, and then execute the subsequent input function based on the vocabulary data in the kernel space. This process increases the time consumption of calling the vocabulary data, thereby affecting the running smoothness and stability of the input method program. The embodiments of the present disclosure provide an input method program running method to solve the above problems.

[0039] The vocabulary data usually needs to be pre-loaded into the memory for the input method program to call. However, in the related technology, the vocabulary data loaded into the memory will be cleared by the operating system when memory resources are tight, resulting in an increased time consumption for vocabulary calls, which in turn affects the running smoothness and stability of the input method program.

[0040] Referring to FIG2 , FIG2 is a flow chart of a method for running an input method program according to an embodiment of the present disclosure. The method of this embodiment can be applied in a terminal device, and the method for running an input method program includes:

[0041] Step S101: before executing the input function of the input method program, obtaining the virtual address corresponding to the vocabulary data required to execute the input function.

[0042] For example, referring to the schematic diagram of the execution process of the input method program shown in FIG1 , after the input method program is run and before the input function is executed, the virtual address corresponding to the vocabulary data is obtained, wherein the virtual address is information representing the data location of the vocabulary data. The input method program obtains the vocabulary data through the virtual address and uses the vocabulary data to execute subsequent input functions, such as word grouping and word error correction based on the vocabulary data. The virtual address is located in the virtual address space, which is also called the process address space. It is a data structure in the kernel of the operating system and is an address space composed of the virtual address of the process (such as the input method program process). The virtual address space and the process address space are technical concepts known to those skilled in the art. The virtual address corresponding to the vocabulary data is determined by the specific operation of the input method program. The virtual address corresponding to the vocabulary data can be obtained by calling a specific virtual address query function, which is a related technology known to those skilled in the art. The above content will not be repeated one by one for this purpose.

[0043] Furthermore, the input function of the input method program refers to the function of the input method program to generate content information such as text, numbers, and logos by receiving input information input by the user (such as keyboard information, voice information, etc.), that is, the main function of the input method program. The input function is a foreground running function, that is, when executing the input method function, the input method program needs to run in the system foreground, that is, it is in a called-up state; in contrast, the input method program can also include non-main functions such as update functions and push functions that can run in the system background and can be executed without being called up. Among them, unlike non-main functions such as update functions and push functions, the implementation of the input function requires the support of the vocabulary data. The input method program needs to convert the input information entered by the user into corresponding text and numbers based on the vocabulary data, and display it as needed to realize the basic text input function. Therefore, in one possible implementation method, the timing of obtaining the virtual address corresponding to the vocabulary data required to execute the input function can be when the input method program is called up to the foreground. For example, as shown in Figure 3, the specific implementation method of step S101 includes:

[0044] Step S1011: performing real-time detection on the input method program running in the background;

[0045] Step S1012: When it is detected that the input method program is called to the foreground to run, a virtual address corresponding to the vocabulary data required to execute the input function is obtained.

[0046] Exemplarily, after the input method program is started, when no text input is performed, the input method program runs in the system background. In a more specific implementation method, after the operating system is running, the input method program is started and resident in the system background. When text input is required, for example, the user clicks on the edit text bar (edit_text) in the web page or software, the operating system calls the input method program from the background to the foreground and displays the input interface of the input method program. Figure 4 is a schematic diagram of a process for obtaining the virtual address of the vocabulary data provided by an embodiment of the present disclosure. Referring to Figure 4, when a terminal device (such as a smart phone) runs a browser program, after receiving a user's click operation on the address bar, the input method program is called up and the input interface of the input method program is displayed. At the same time, after detecting that the input interface is called up and displayed, the terminal device (input method program) obtains the virtual address of the vocabulary data, and then, based on the virtual address of the vocabulary data, loads the vocabulary data into the kernel space. Afterwards, the user can further operate the input interface of the input method program to input keyboard information, such as clicking the "GHI" key. The input method program then uses the vocabulary data to perform the input function (word formation function), displaying words containing the letter "h" in the input method interface, such as "hi," "happy," and "http" as shown in the figure. The virtual address of the vocabulary data is known and preset after the input method program is started. The virtual address of the preset vocabulary data can be directly read, and the specific process is not repeated here.

[0047] Step S102: Load the vocabulary data into the kernel space corresponding to the virtual address.

[0048] For example, after obtaining the virtual address corresponding to the vocabulary data, in one possible case, if the above-mentioned vocabulary data has been stored in the kernel space, the terminal device can directly obtain the above-mentioned vocabulary data based on the virtual address, and then use the vocabulary data to complete input functions such as word formation and error correction. This possible situation is usually when the input method program is running in the foreground, and the operating system will not clean up and recycle the memory data used by the application in the call state, so the corresponding vocabulary data can be obtained directly based on the virtual address. In another possible case, if the above-mentioned vocabulary data is not stored in the kernel space, the terminal device cannot directly obtain the above-mentioned vocabulary data in the kernel space based on the virtual address, which will cause a page fault interrupt (also known as a hard page fault interrupt, hard interrupt, hard error). In this case, the terminal device obtains the above-mentioned vocabulary data from the disk and loads it into the kernel space corresponding to the virtual address. At this time, since the input method program has not yet started to execute the input function, that is, the vocabulary data has not been called, it is equivalent to preloading the vocabulary data, thereby avoiding the page fault interrupt problem generated in the subsequent steps when the vocabulary data needs to be called to execute the input function.

[0049] Furthermore, exemplarily, the virtual address includes a virtual memory page address corresponding to at least one vocabulary file storing vocabulary data, and the virtual memory page address is mapped one-to-one with the disk address of the vocabulary file. As shown in FIG5 , exemplarily, the specific implementation of step S102 includes:

[0050] Step S1021: traverse the virtual memory page address corresponding to at least one vocabulary file to determine missing data stored in the vocabulary file, wherein the missing data is vocabulary data that has not been copied to the kernel space.

[0051] Step S1022: Load the missing data stored in the vocabulary file into the kernel space.

[0052] For example, the vocabulary data required to perform the input function is stored in the disk in the form of a vocabulary file. Then, based on the mapping relationship between the user space and the disk space, the input method program obtains the vocabulary data required to perform the input function, that is, the vocabulary data is loaded in the form of file mapping. Among them, the disk address of the vocabulary file corresponds to the virtual memory page address. The virtual memory page address refers to the address of the virtual memory page corresponding to the virtual memory. Virtual memory is a related technology that uses hard disk space as memory. It will not be repeated here. The virtual memory page address is information used to describe the continuous address position of the above-mentioned virtual memory page. Since the virtual memory page is virtualized, its corresponding virtual memory page address is also virtual and is not consistent with the address of the actual physical memory page.

[0053] Furthermore, under normal circumstances (memory data has not been cleared by the operating system), the vocabulary data stored in the vocabulary file can be obtained from the corresponding location in the kernel space through the virtual memory page address. Therefore, the terminal device traverses the virtual memory page address, that is, accesses each virtual memory page address in turn, and according to the access result returned by the operating system, it can determine whether the corresponding kernel space contains the corresponding vocabulary data. For example, if the access result returned by the operating system is an integer greater than 0 and less than or equal to 127, it is determined that the data stored in the vocabulary file corresponding to the virtual memory page address is normal vocabulary data; if the access result returned by the operating system is 0 or Null, it is determined that the data stored in the vocabulary file corresponding to the virtual memory page address is missing data. Missing data is vocabulary data that has not been copied to the kernel space.

[0054] Furthermore, if the data stored in the lexicon file is missing data, the disk address corresponding to the lexicon file (virtual memory page address) is obtained based on the preset page table, and the lexicon data is read from the disk address and copied to the kernel space, thereby loading the missing data stored in the lexicon file into the kernel space. Ultimately, all the lexicon data required to execute the input function is loaded into the kernel space corresponding to the virtual address, avoiding the subsequent page fault interrupt problem.

[0055] Among them, exemplarily, the method provided in this embodiment can be applied to the Linux system, or an operating system based on the Linux system. Specifically, when traversing the virtual memory page address corresponding to each vocabulary file, the file pre-reading mechanism of the Linux kernel is used to traverse the virtual memory page address corresponding to the file page to load the data in at least two consecutive file pages into the kernel space, wherein the vocabulary file is composed of at least two file pages, and each file page is used to store a part of the vocabulary data. Through the above method, the file pre-reading mechanism of the Linux kernel can be used to efficiently pre-read the file and improve the speed of loading the vocabulary data into the kernel space.

[0056] Step S103: In response to the user instruction, the target vocabulary data in the kernel space is called to execute the input function corresponding to the user instruction in the input method program.

[0057] Exemplarily, further, after all the vocabulary data required to execute the input function are loaded into the kernel space corresponding to the virtual address, in response to the user instruction for triggering the input function, the target vocabulary data for executing the input function triggered by the user instruction is called from the kernel space to implement the input function corresponding to the user instruction. Among them, the vocabulary data can be a functional model containing specific functions, methods and data, which has a corresponding calling interface (API). The calling interface is used to implement the call to the vocabulary data, thereby implementing the vocabulary function of the vocabulary data, and then implementing the corresponding input function according to the set of vocabulary functions of one or more vocabulary data. Figure 6 is a schematic diagram of a process for executing an input function provided by an embodiment of the present disclosure. As shown in Figure 6, exemplarily, the user instruction comm_1 includes keyboard information letter "z" and letter "m" (shown as comm_1[z,m] in the figure), and the user instruction comm_1 is used to instruct the input method program to generate a corresponding phrase based on the above keyboard information. Based on the user command comm_1, the terminal device (input method program) calls the kernel space's word library data pack_1 and word library data pack_3 as target word library data to process user command comm_1. Word library data pack_1 is used to group words using the keyboard information as initial letters to generate Chinese characters; word library data pack_3 is used to correct the Chinese characters based on the keyboard information to obtain commonly used Chinese characters. Finally, the commonly used Chinese characters are displayed on the terminal device's display interface, completing the input function.

[0058] In this embodiment, before executing the input function of the input method program, the virtual address corresponding to the vocabulary data required to execute the input function is obtained; the vocabulary data is loaded into the kernel space corresponding to the virtual address; and in response to a user instruction, the target vocabulary data in the kernel space is called to execute the input function corresponding to the user instruction in the input method program. By obtaining the virtual address before executing the input function of the input method program and preloading the vocabulary data based on the virtual address, when executing the input function in response to the user instruction, the corresponding target vocabulary data can be directly obtained from the kernel space via file mapping, avoiding the problem of hard page fault interrupts caused by memory clearing, reducing the overall time consumed by the input method program to call vocabulary data, reducing lag, and improving the stability and smoothness of the input function of the input method program.

[0059] Referring to FIG7 , FIG7 is a second flow chart of the input method program operation method provided by the embodiment of the present disclosure. Based on the embodiment shown in FIG2 , this embodiment further refines step S102 , and the input method program operation method includes:

[0060] Step S201: Before executing the input function of the input method program, obtain the virtual address corresponding to the vocabulary data required to execute the input function. The virtual address includes the virtual memory page address corresponding to at least one vocabulary file storing the vocabulary data. The virtual memory page address is mapped one-to-one to the disk address of the vocabulary file.

[0061] Step S202: Based on the virtual memory page address of the current vocabulary file, access the page cache area of ​​the kernel space to obtain an access result.

[0062] For example, the page cache is an area in the memory used to store some disk data. Through the page cache, the operating system can be allowed to retain some data that is usually stored on the disk in the kernel area of ​​the memory, so that when the disk needs to be accessed, the corresponding data can be obtained from the page cache without having to read the data from the disk, thereby improving the data reading and writing speed. In the scenario where the vocabulary files used by the input method program are loaded using file mapping, each vocabulary file corresponds to a virtual memory page address. The virtual memory page address has been introduced in detail in the embodiment shown in Figure 2 and will not be repeated here. A loop is traversed for each vocabulary file, and the virtual memory page address of each vocabulary file is obtained in turn. Specifically, during this specific loop process, based on the virtual memory page address of the current vocabulary file, the address of the page cache area corresponding to the virtual memory page address can be obtained, that is, the address of the vocabulary data corresponding to the virtual memory page address stored in the page cache area. Then, the address of the page cache area corresponding to each virtual memory page address is accessed, and the access result obtained is the data at the address.

[0063] In one possible implementation, the vocabulary file corresponds to at least two physical pages located in the page cache area, and the physical pages are used to store vocabulary data; the virtual memory page address includes at least two sub-memory page addresses, and the sub-memory page address represents the first address of the physical page. As shown in Figure 8, the specific implementation of step S202 includes:

[0064] Step S2021: traverse the corresponding physical pages according to at least two sub-memory page addresses of the current vocabulary file.

[0065] Step S2022: Read the first byte of each physical page in sequence to obtain an access result.

[0066] Exemplarily, the page cache area is composed of physical pages, and the virtual memory page address is composed of at least two sub-memory page addresses. The location of the physical page corresponds one-to-one with the sub-memory page address, that is, the sub-memory page address is mapped to the physical page. When traversing each vocabulary file, for each vocabulary file, the corresponding physical page is accessed based on the corresponding sub-memory page address, and the first byte of each physical page is read. The access result is obtained based on the content of the read first byte.

[0067] Step S203: Determine missing data corresponding to the current vocabulary file based on the access result, wherein the missing data is vocabulary data that has not been copied to the kernel space.

[0068] Exemplarily, a specific implementation of step S203 includes: if the first byte of the first physical page corresponding to the vocabulary file is non-preset information, determining the data stored in the first physical page as missing data.

[0069] FIG9 is a schematic diagram of a process for determining missing data provided by an embodiment of the present disclosure. As shown in FIG9 , for example, the process for the vocabulary file File_1 corresponds to multiple physical pages, such as physical page p1, physical page p2, and physical page p3 shown in the figure. According to the sub-memory page address, the first byte of physical page p1, the first byte of physical page p2, and the first byte of physical page p3 are read respectively, and the content of the first byte of physical page p1 is [01000100]; the content of the first byte of physical page p2 is [01100101]; and the content of the first byte of physical page p3 is [00000000]; wherein [00000000] is non-preset information. Therefore, after reading the first byte of physical page p3, physical page p3 is determined to be the first physical page, and the data stored in physical page p3 is determined to be missing data. Afterwards, the vocabulary data (missing data) corresponding to the physical page p3 is obtained from the disk space and loaded into the kernel space to complete the vocabulary data required by the input method program.

[0070] This embodiment maps the lexicon file to multiple physical pages and determines whether the corresponding physical page contains missing data based on the result of accessing the first byte of the physical page. This allows for segmented loading and rapid determination of the lexicon data stored in the lexicon file. This effectively speeds up the determination of missing data, reduces the time required to traverse all lexicon files, and improves lexicon data loading efficiency.

[0071] Step S204: Based on the disk address of the current vocabulary file, the corresponding missing data is loaded into the page cache area.

[0072] For example, after obtaining the missing data, the physical page corresponding to the missing data is obtained from the disk and loaded into the kernel space to complete the completion of the vocabulary data required by the input method program. As shown in Figure 10, the specific implementation of step S204 includes:

[0073] Step S2041: Obtain the corresponding first disk address according to the sub-memory page address corresponding to the first physical page.

[0074] Step S2042: read the data at the first disk address to obtain missing data, and load the missing data into the first physical page.

[0075] Exemplarily, the first physical page is the physical page storing the missing data. Based on the above steps, after determining the first physical page based on the first byte of the physical page, the corresponding first disk address is obtained based on the sub-memory page address corresponding to the first physical page. The mapping relationship between the memory page address and the disk address is determined by a preset page table. The lexicon file includes at least two file pages, which are used to store lexicon data. The first disk address is the first address of the file page of the lexicon file. That is, there is a one-to-one correspondence between the physical pages in the cache page and the file pages on disk that constitute the lexicon file. The file page is the result of segmenting the lexicon file. The physical page is the data object after the file page is loaded into memory. The disk address is the address of the file page. The first disk address is the address of the first file page corresponding to the first physical page. Therefore, after obtaining the first disk address corresponding to the memory page address, the data at the first disk address, i.e., the first file page, is read. The data stored in the first file page is the missing data. Subsequently, the confirmed data in the first file page is loaded into the first physical page in the page cache, completing the process of loading the missing data into the page cache.

[0076] Step S205: If the current vocabulary file is the last vocabulary file, execute step S206; otherwise, locate the next vocabulary file and return to step S202.

[0077] Furthermore, after processing the current vocabulary file, if the current vocabulary file is not the last vocabulary file of all vocabulary files configured for the input method program, continue to locate the next vocabulary file, and return to step S202 to loop and execute the above steps to process the vocabulary file so that the missing data corresponding to the input function can be loaded into the memory for use; if the vocabulary file is the last vocabulary file of all vocabulary files configured for the input method program, it means that all vocabulary files have been processed. At this time, it can be guaranteed that the vocabulary data stored in all vocabulary files have been fully loaded into the memory for use. In this case, the problem of page fault interruption can be avoided, so the loop can be ended and the subsequent input function call steps can be executed.

[0078] Step S206: In response to the user instruction, the target vocabulary data in the kernel space is called to execute the input function corresponding to the user instruction in the input method program.

[0079] In this embodiment, step S201 and step S206 are consistent with step S101 and step S103 in the embodiment shown in FIG. 2 . For detailed discussion, please refer to the content in the embodiment shown in FIG. 2 , which will not be repeated here.

[0080] Corresponding to the input method program running method of the above embodiment, FIG11 is a structural block diagram of the input method program running device provided by the embodiment of the present disclosure. For ease of explanation, only the parts related to the embodiment of the present disclosure are shown. Referring to FIG11, the input method program running device 3 includes:

[0081] The acquisition module 31 is used to acquire the virtual address corresponding to the vocabulary data required to execute the input function before executing the input function of the input method program;

[0082] The loading module 32 is used to load the vocabulary data into the kernel space corresponding to the virtual address;

[0083] The calling module 33 is used to call the target vocabulary data in the kernel space in response to the user instruction to execute the input function corresponding to the user instruction in the input method program.

[0084] In one embodiment of the present disclosure, the virtual address includes a virtual memory page address corresponding to at least one vocabulary file storing vocabulary data, and the virtual memory page address is mapped one-to-one to the disk address of the vocabulary file; the loading module 32 is specifically used to: traverse the virtual memory page address corresponding to at least one vocabulary file, and load the missing data stored in the vocabulary file into the kernel space, wherein the missing data is the vocabulary data that has not been copied to the kernel space.

[0085] In one embodiment of the present disclosure, when the loading module 32 traverses the virtual memory page address corresponding to at least one vocabulary file and loads the missing data stored in the vocabulary file into the kernel space, it is specifically used to: for each vocabulary file, perform the following steps: based on the virtual memory page address of the current vocabulary file, access the page cache area of ​​the kernel space to obtain the access result; based on the access result, determine the missing data corresponding to the current vocabulary file; based on the disk address of the current vocabulary file, load the corresponding missing data into the page cache area.

[0086] In one embodiment of the present disclosure, the vocabulary file corresponds to at least two physical pages located in the page cache area, and the physical pages are used to store vocabulary data; the virtual memory page address includes at least two sub-memory page addresses, and the sub-memory page address represents the first address of the physical page; the loading module 32 accesses the page cache area of ​​the kernel space based on the virtual memory page address of the current vocabulary file, and when obtaining the access result, it is specifically used to: traverse the corresponding physical pages according to the at least two sub-memory page addresses of the current vocabulary file; read the first byte of each physical page in turn to obtain the access result.

[0087] In one embodiment of the present disclosure, when the loading module 32 determines the missing data corresponding to the current vocabulary file based on the access result, it is specifically used to: if the first byte of the first physical page corresponding to the vocabulary file is non-preset information, then the data stored in the first physical page is determined to be missing data; the loading module 32 loads the corresponding missing data into the page cache area based on the disk address of the current vocabulary file, including: obtaining the corresponding first disk address according to the sub-memory page address corresponding to the first physical page; reading the data at the first disk address to obtain the missing data, and loading the missing data into the first physical page.

[0088] In one embodiment of the present disclosure, the vocabulary file includes at least two file pages, which are used to store vocabulary data; when the loading module 32 traverses the virtual memory page address corresponding to at least one vocabulary file and loads the missing data stored in the vocabulary file into the kernel space, it is specifically used to: for each vocabulary file, use the file pre-reading mechanism of the Linux kernel to traverse the virtual memory page address corresponding to the file page to load the data in at least two consecutive file pages into the kernel space.

[0089] In one embodiment of the present disclosure, the acquisition module 31 is specifically used to: perform real-time detection on the input method program running in the background; when it is detected that the input method program is called to the foreground to run, obtain the virtual address corresponding to the vocabulary data required to execute the input function.

[0090] The acquisition module 31, loading module 32 and calling module 33 are connected in sequence. The input method program running device 3 provided in this embodiment can execute the technical solution of the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated in this embodiment.

[0091] FIG12 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. As shown in FIG12 , the electronic device 7 includes:

[0092] A processor 41, and a memory 42 communicatively connected to the processor 41;

[0093] Memory 42 stores computer-executable instructions;

[0094] The processor 41 executes the computer-executable instructions stored in the memory 42 to implement the input method program running method in the embodiments shown in FIG. 2 to FIG. 10 .

[0095] Optionally, the processor 41 and the memory 42 are connected via a bus 43 .

[0096] The relevant explanations can be understood by referring to the relevant descriptions and effects corresponding to the steps in the embodiments corresponding to Figures 2 to 10, and no further details will be given here.

[0097] An embodiment of the present disclosure provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are executed by a processor, they are used to implement the input method program running method provided in any of the embodiments corresponding to Figures 2 to 10 of the present disclosure.

[0098] An embodiment of the present disclosure provides a computer program product, including a computer program. When the computer program is executed by a processor, the input method program running method in the embodiments shown in Figures 2 to 10 is implemented.

[0099] Referring to FIG13 , a schematic diagram of the structure of an electronic device 900 suitable for implementing an embodiment of the present disclosure is shown. The electronic device 900 may be a terminal device or a server. The terminal device may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (Portable Android Devices, PADs), portable multimedia players (PMPs), vehicle-mounted terminals (e.g., vehicle-mounted navigation terminals), and fixed terminals such as digital TVs and desktop computers. The electronic device shown in FIG13 is merely an example and should not limit the functionality and scope of use of the embodiments of the present disclosure.

[0100] As shown in FIG13 , the electronic device 900 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage device 908 into a random access memory (RAM) 903. Various programs and data required for the operation of the electronic device 900 are also stored in the RAM 903. The processing device 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.

[0101] Typically, the following devices can be connected to the I / O interface 905: an input device 906 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 907 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 908 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 909. The communication device 909 can allow the electronic device 900 to communicate with other devices wirelessly or by wire to exchange data. Although FIG13 shows an electronic device 900 with various devices, it should be understood that it is not required to implement or have all of the devices shown. More or fewer devices may be implemented or have alternatively.

[0102] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network via the communication device 909, or installed from the storage device 908, or installed from the ROM 902. When the computer program is executed by the processing device 901, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.

[0103] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.

[0104] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0105] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method shown in the above embodiment.

[0106] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet Service Provider).

[0107] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0108] The units involved in the embodiments described in this disclosure may be implemented in software or hardware. In some cases, the name of a unit does not limit the unit itself. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses."

[0109] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.

[0110] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0111] In a first aspect, according to one or more embodiments of the present disclosure, a method for running an input method program is provided, comprising:

[0112] Before executing the input function of the input method program, obtain the virtual address corresponding to the vocabulary data required to execute the input function; load the vocabulary data into the kernel space corresponding to the virtual address; and in response to user instructions, call the target vocabulary data in the kernel space to execute the input function corresponding to the user instruction in the input method program.

[0113] According to one or more embodiments of the present disclosure, the virtual address includes a virtual memory page address corresponding to at least one vocabulary file storing vocabulary data, and the virtual memory page address is mapped one-to-one to the disk address of the vocabulary file; loading the vocabulary data into the kernel space corresponding to the virtual address includes: traversing the virtual memory page address corresponding to the at least one vocabulary file, and loading the missing data stored in the vocabulary file into the kernel space, wherein the missing data is the vocabulary data that has not been copied to the kernel space.

[0114] According to one or more embodiments of the present disclosure, the virtual memory page address corresponding to the at least one vocabulary file is traversed to load the missing data stored in the vocabulary file into the kernel space, including: for each of the vocabulary files, performing the following steps: based on the virtual memory page address of the current vocabulary file, accessing the page cache area of ​​the kernel space to obtain an access result; based on the access result, determining the missing data corresponding to the current vocabulary file; based on the disk address of the current vocabulary file, loading the corresponding missing data into the page cache area.

[0115] According to one or more embodiments of the present disclosure, the vocabulary file corresponds to at least two physical pages located in the page cache area, and the physical pages are used to store vocabulary data; the virtual memory page address includes at least two sub-memory page addresses, and the sub-memory page address represents the first address of the physical page; the virtual memory page address based on the current vocabulary file accesses the page cache area of ​​the kernel space to obtain the access result, including: traversing the corresponding physical pages according to the at least two sub-memory page addresses of the current vocabulary file; reading the first byte of each of the physical pages in turn to obtain the access result.

[0116] According to one or more embodiments of the present disclosure, determining the missing data corresponding to the current vocabulary file based on the access result includes: if the first byte of the first physical page corresponding to the vocabulary file is non-preset information, determining the data stored in the first physical page as missing data; loading the corresponding missing data into the page cache area based on the disk address of the current vocabulary file includes: obtaining the corresponding first disk address according to the sub-memory page address corresponding to the first physical page; reading the data at the first disk address to obtain the missing data, and loading the missing data into the first physical page.

[0117] According to one or more embodiments of the present disclosure, the vocabulary file includes at least two file pages, which are used to store vocabulary data; the traversal of the virtual memory page address corresponding to the at least one vocabulary file to load the missing data stored in the vocabulary file into the kernel space includes: for each of the vocabulary files, using the file pre-reading mechanism of the Linux kernel, traversing the virtual memory page address corresponding to the file page to load the data in at least two consecutive file pages into the kernel space.

[0118] According to one or more embodiments of the present disclosure, before executing the input function of the input method program, obtaining the virtual address corresponding to the vocabulary data required to execute the input function includes: performing real-time detection on the input method program running in the background; when it is detected that the input method program is called to the foreground to run, obtaining the virtual address corresponding to the vocabulary data required to execute the input function.

[0119] In a second aspect, according to one or more embodiments of the present disclosure, there is provided an input method program running device, comprising:

[0120] An acquisition module, used for acquiring a virtual address corresponding to the vocabulary data required to execute the input function before executing the input function of the input method program;

[0121] A loading module, configured to load the vocabulary data into the kernel space corresponding to the virtual address;

[0122] The calling module is used to call the target vocabulary data in the kernel space in response to the user instruction to execute the input function corresponding to the user instruction in the input method program.

[0123] According to one or more embodiments of the present disclosure, the virtual address includes a virtual memory page address corresponding to at least one vocabulary file storing vocabulary data, and the virtual memory page address is mapped one-to-one to the disk address of the vocabulary file; the loading module is specifically used to: traverse the virtual memory page address corresponding to the at least one vocabulary file, and load the missing data stored in the vocabulary file into the kernel space, wherein the missing data is the vocabulary data that has not been copied to the kernel space.

[0124] According to one or more embodiments of the present disclosure, when the loading module traverses the virtual memory page address corresponding to the at least one vocabulary file and loads the missing data stored in the vocabulary file into the kernel space, it is specifically used to: for each of the vocabulary files, perform the following steps: based on the virtual memory page address of the current vocabulary file, access the page cache area of ​​the kernel space to obtain an access result; based on the access result, determine the missing data corresponding to the current vocabulary file; based on the disk address of the current vocabulary file, load the corresponding missing data into the page cache area.

[0125] According to one or more embodiments of the present disclosure, the vocabulary file corresponds to at least two physical pages located in the page cache area, and the physical pages are used to store vocabulary data; the virtual memory page address includes at least two sub-memory page addresses, and the sub-memory page address represents the first address of the physical page; the loading module 32 accesses the page cache area of ​​the kernel space based on the virtual memory page address of the current vocabulary file, and when obtaining the access result, it is specifically used to: traverse the corresponding physical pages according to the at least two sub-memory page addresses of the current vocabulary file; read the first byte of each of the physical pages in turn to obtain the access result.

[0126] According to one or more embodiments of the present disclosure, when the loading module determines the missing data corresponding to the current vocabulary file based on the access result, it is specifically used to: if the first byte of the first physical page corresponding to the vocabulary file is non-preset information, then the data stored in the first physical page is determined to be missing data; the loading module loads the corresponding missing data into the page cache area based on the disk address of the current vocabulary file, including: obtaining the corresponding first disk address according to the sub-memory page address corresponding to the first physical page; reading the data at the first disk address to obtain the missing data, and loading the missing data into the first physical page.

[0127] According to one or more embodiments of the present disclosure, the vocabulary file includes at least two file pages, which are used to store vocabulary data; when the loading module traverses the virtual memory page address corresponding to the at least one vocabulary file and loads the missing data stored in the vocabulary file into the kernel space, it is specifically used to: for each of the vocabulary files, use the file pre-reading mechanism of the Linux kernel to traverse the virtual memory page address corresponding to the file page to load the data in at least two consecutive file pages into the kernel space.

[0128] According to one or more embodiments of the present disclosure, the acquisition module is specifically used to: perform real-time detection on the input method program running in the background; when it is detected that the input method program is called to the foreground to run, obtain the virtual address corresponding to the vocabulary data required to execute the input function.

[0129] In a third aspect, according to one or more embodiments of the present disclosure, there is provided an electronic device, comprising: a processor, and a memory communicatively connected to the processor;

[0130] The memory stores computer-executable instructions;

[0131] The processor executes the computer-executable instructions stored in the memory to implement the input method program running method described in the first aspect and various possible designs of the first aspect.

[0132] In a fourth aspect, according to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, in which computer execution instructions are stored. When a processor executes the computer execution instructions, the input method program running method described in the first aspect and various possible designs of the first aspect is implemented.

[0133] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the input method program running method described in the first aspect and various possible designs of the first aspect.

[0134] The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but also encompasses other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned disclosed concepts. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in the present disclosure.

[0135] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details have been included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0136] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.

Claims

1. A method for running an input method program, include: Before executing the input function of the input method program, obtaining a virtual address corresponding to the vocabulary data required to execute the input function; Loading the word library data into the kernel space corresponding to the virtual address; In response to a user instruction, the target word library data in the kernel space is called to execute the input function corresponding to the user instruction in the input method program.

2. The method according to claim 1, wherein the virtual address comprises a virtual memory page address corresponding to at least one vocabulary file storing vocabulary data, and the virtual memory page address is mapped one-to-one with the disk address of the vocabulary file; and the loading of the vocabulary data into the kernel space corresponding to the virtual address, include: The virtual memory page address corresponding to the at least one vocabulary file is traversed, and the missing data stored in the vocabulary file is loaded into the kernel space, wherein the missing data is the vocabulary data that has not been copied to the kernel space.

3. The method according to claim 2, wherein the virtual memory page address corresponding to the at least one vocabulary file is traversed to load the missing data stored in the vocabulary file into the kernel space, include: For each of the thesaurus files, perform the following steps: Based on the virtual memory page address of the current word library file, access the page cache area of ​​the kernel space to obtain an access result; Determine the missing data corresponding to the current vocabulary file according to the access result; Based on the disk address of the current vocabulary file, the corresponding missing data is loaded into the page cache area.

4. The method according to claim 3, wherein the word library file corresponds to at least two physical pages located in the page cache area, and the physical pages are used to store word library data; the virtual memory page address includes at least two sub-memory page addresses, and the sub-memory page address represents the first address of the physical page; The accessing of the page cache area of ​​the kernel space based on the virtual memory page address of the current word library file to obtain the access result includes: According to at least two sub-memory page addresses of the current vocabulary file, traverse the corresponding physical pages; The first byte of each of the physical pages is read in sequence to obtain the access result.

5. The method according to claim 3 or 4, wherein the missing data corresponding to the current word library file is determined according to the access result, include: If the first byte of the first physical page corresponding to the vocabulary file is non-preset information, the data stored in the first physical page is determined as missing data; The step of loading the corresponding missing data into the page cache area based on the disk address of the current word library file includes: Obtaining a corresponding first disk address according to the sub-memory page address corresponding to the first physical page; The data at the first disk address is read to obtain the missing data, and the missing data is loaded into the first physical page.

6. The method according to any one of claims 2 to 5, wherein the vocabulary file comprises at least two file pages, and the file pages are used to store vocabulary data; the virtual memory page address corresponding to the at least one vocabulary file is traversed to load the missing data stored in the vocabulary file into the kernel space, include: For each of the vocabulary files, the file pre-reading mechanism of the Linux kernel is used to traverse the virtual memory page addresses corresponding to the file pages, so as to load the data in at least two consecutive file pages into the kernel space.

7. The method according to any one of claims 1 to 6, wherein before executing the input function of the input method program, a virtual address corresponding to the word library data required to execute the input function is obtained, include: Performing real-time detection on the input method program running in the background; When it is detected that the input method program is called up to the foreground for execution, a virtual address corresponding to the word library data required for executing the input function is obtained.

8. An input method program running device, include: An acquisition module, used for acquiring a virtual address corresponding to the word library data required to execute the input function before executing the input function of the input method program; A loading module, used for loading the word library data into the kernel space corresponding to the virtual address; The calling module is used to call the target word library data in the kernel space in response to the user instruction to execute the input function corresponding to the user instruction in the input method program.

9. An electronic device, include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the input method program running method according to any one of claims 1 to 7.

10. A computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when a processor executes the computer-executable instructions, the input method program running method according to any one of claims 1 to 7 is implemented.

11. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the input method program running method according to any one of claims 1 to 7 is implemented.

12. A computer program, which, when executed by a processor, implements the input method program running method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Storage space allocation method and device

    CN103853665A

  • Memory management method and device, electronic equipment and storage medium

    CN112445767A

  • Handheld terminal low-power-consumption data acquisition method based on mmap memory mapping

    CN115687185A

  • Method for preloading file page, electronic equipment and chip system

    CN115858047A

  • Emulated translation unit using a management processor

    US10489302B1

Cited By

  • Word bank management and switching method of multi-language single-chip microcomputer

    CN119292730A