Unlock instant, AI-driven research and patent intelligence for your innovation.

File packing method and system based on Hook technology

A file opening and file technology, applied in instruments, computing, electrical digital data processing, etc., can solve the problems of reducing the access speed of package files, jumping large, not caring about the files in the package, etc., so as to improve the access speed and improve the access speed. Effect

Active Publication Date: 2013-09-11
ZHUHAI KINGSOFT ONLINE GAME TECH CO LTD +1
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in the process of file packaging, the traditional packaging method does not care about the relationship between the position of the files in the package and the reading order
This may cause the two files that originally have an access sequence relationship to be relatively far apart in the package file, causing the hard disk head to jump a lot when reading the package file, thereby increasing the seek time of the hard disk and reducing the package file. access speed

Method used

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

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • File packing method and system based on Hook technology
  • File packing method and system based on Hook technology
  • File packing method and system based on Hook technology

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0064] refer to figure 1 , a kind of file packing method based on Hook technology of the present invention, comprises:

[0065] A. Use Hook technology to collect the access sequence of files in the package, so as to obtain the file access sequence list;

[0066] B. Pack the files to be packed according to the obtained file access sequence list, so as to write the files to be packed into the pack file.

[0067] Wherein, the package file is a packaged, updated or sorted file package, which is composed of one or more files in the package. For example, there is a package file G, which includes four package files whose filenames are a, b, c and d respectively, then the file named e is the package file of G. The file access sequence list is composed of sequentially arranged file names or relative paths, which is close to the actual software's access sequence to the files in the package. For the convenience of reading, the access sequence number is usually added to the file access...

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

PUM

No PUM Login to View More

Abstract

The invention discloses a file packing method and system based on a Hook technology. The file packing method includes steps of A), adopting the Hook technology to acquire an access sequence of packed files to acquire a file access sequence list; B), packing to-be-packed files according to the acquired file access sequence list and writing the to-be-packed files into the packed files. According to the method, files are packed according to the acquired file access sequence list, the access sequence of the acquired file access sequence list is the same or similar to that of the packed files when software is actually operated, two files closely related in the access sequence are arranged closely in the packed files, so that a magnetic head of a hard drive can access to the whole packed files in an approximate sequence, and access speed of the packed files is increased. The file packing method and system based on the Hook technology is widely applicable to the field of computer application.

Description

technical field [0001] The invention relates to the field of computer applications, in particular to a Hook technology-based file packaging method and system. Background technique [0002] Hook, also called hook, is a platform for Windows message processing mechanism. The application program can set a subroutine on the Hook to monitor certain messages of the specified window, and the window it monitors can be created by other processes. After the message arrives, the application processes the Hook before the target window handler function. Therefore, the Hook mechanism allows applications to intercept and process Windows messages or specific events. [0003] In fact, Hook is a program segment for processing messages, which can be hooked into the system through system calls. The Hook program captures the message before the message sent by the system reaches the destination window, so that the Hook function can get the control right first. At this time, the Hook function c...

Claims

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

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/30
Inventor 陈飞舟吴才忠刘畅
Owner ZHUHAI KINGSOFT ONLINE GAME TECH CO LTD