CN108446300A - The scan method and device of data information - Google Patents

The scan method and device of data information Download PDF

Info

Publication number
CN108446300A
CN108446300A CN201810076830.0A CN201810076830A CN108446300A CN 108446300 A CN108446300 A CN 108446300A CN 201810076830 A CN201810076830 A CN 201810076830A CN 108446300 A CN108446300 A CN 108446300A
Authority
CN
China
Prior art keywords
data information
scanned
memory
compressed
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810076830.0A
Other languages
Chinese (zh)
Other versions
CN108446300B (en
Inventor
陈雄
徐鹏捷
赵建锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201810076830.0A priority Critical patent/CN108446300B/en
Publication of CN108446300A publication Critical patent/CN108446300A/en
Application granted granted Critical
Publication of CN108446300B publication Critical patent/CN108446300B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • G06F16/122File system administration, e.g. details of archiving or snapshots using management policies
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/172Caching, prefetching or hoarding of files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/174Redundancy elimination performed by the file system
    • G06F16/1744Redundancy elimination performed by the file system using compression, e.g. sparse files

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a kind of scan method of data information and devices.Wherein, this method includes:Judge whether data information to be scanned meets default contractive condition according to the information capacity of data information to be scanned;If so, being compressed to data information to be scanned, compressed data information is loaded into memory;It is unziped it for the compressed data information loaded in memory;It is parsed for the data information after decompression, with the scanning result of determination data information to be scanned.It can be seen that using scheme provided by the invention, by being compressed to data information, compressed data information is only loaded in memory, so as to avoid because data information is excessive can not scan the problem of, enable scan method suitable for all kinds of big files, widened service application scene.

Description

The scan method and device of data information
Technical field
The present invention relates to field of computer technology, and in particular to a kind of scan method and device of data information.
Background technology
Currently, in many application scenarios, it is required for being scanned data information, after being carried out according to scanning result Continuous processing.For example, being required for being scanned the databases such as virus base or update library in the several scenes such as antivirus, update.Tool Body, it needs first to load files into memory in scanning, to be scanned processing by system.
But inventor has found in the implementation of the present invention, above-mentioned scan mode in the prior art at least exists Following defects:It can be just scanned since file to be scanned must be loaded in memory, the size of file to be scanned It is restricted by memory remaining space.If file size is more than memory remaining space, it can cause file that can not be loaded onto memory In, and then scan operation is caused to fail.
Invention content
In view of the above problems, it is proposed that the present invention overcoming the above problem in order to provide one kind or solves at least partly State the scan method and device of the data information of problem.
According to an aspect of the invention, there is provided the scan method of data information, including:
Judge whether data information to be scanned meets default compressor bar according to the information capacity of data information to be scanned Part;
If so, being compressed to data information to be scanned, compressed data information is loaded into memory;
It is unziped it for the compressed data information loaded in memory;
It is parsed for the data information after decompression, with the scanning result of determination data information to be scanned.
According to another aspect of the present invention, the scanning means of data information is provided, including:
Judgment module, suitable for judging whether data information to be scanned accords with according to the information capacity of data information to be scanned It closes and presets contractive condition;
Load-on module, suitable for if so, compressed to data information to be scanned, compressed data information is loaded into In memory;
Decompression module, suitable for being unziped it for the compressed data information loaded in memory;
Determining module, suitable for being parsed for the data information after decompression, with determination data information to be scanned Scanning result.
According to another aspect of the invention, a kind of electronic equipment is provided, including:Processor, memory, communication interface and Communication bus, processor, memory and communication interface complete mutual communication by communication bus;
Memory makes processor execute sweeping for above-mentioned data information for storing an at least executable instruction, executable instruction Retouch the corresponding operation of method.
In accordance with a further aspect of the present invention, a kind of computer storage media is provided, at least one is stored in storage medium Executable instruction, executable instruction make processor execute the corresponding operation of scan method such as above-mentioned data information.
According to the scan method and device of data information disclosed by the invention, when the information according to data information to be scanned When capacity judges that data information to be scanned meets default contractive condition, data information to be scanned is compressed, will be pressed Data information after contracting is loaded into memory;It is solved after being unziped it for the compressed data information loaded in memory Analysis, with the scanning result of determination data information to be scanned.It can be seen which is by compressing data information, only Load compressed data information in memory, so as to avoid because data information is excessive can not scan the problem of, make scanning Method can widen service application scene suitable for all kinds of big files.
Above description is only the general introduction of technical solution of the present invention, in order to better understand the technical means of the present invention, And can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, below the special specific implementation mode for lifting the present invention.
Description of the drawings
By reading the detailed description of hereafter preferred embodiment, various other advantages and benefit are common for this field Technical staff will become clear.Attached drawing only for the purpose of illustrating preferred embodiments, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows the flow diagram of the scan method of the data information of one embodiment of the invention;
Fig. 2 shows the flow diagrams of the scan method of the data information of another embodiment of the present invention;
Fig. 3 shows a kind of structure drawing of device of the scanning means for data information that further embodiment of this invention provides;
Fig. 4 shows the structural schematic diagram of a kind of electronic equipment according to the ... of the embodiment of the present invention.
Specific implementation mode
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure Completely it is communicated to those skilled in the art.
Fig. 1 shows the flow diagram of the scan method of the data information of one embodiment of the invention.As shown in Figure 1, This method includes:
Step S110:It is pre- to judge whether data information to be scanned meets according to the information capacity of data information to be scanned If contractive condition.
Wherein, default contractive condition can be flexibly arranged, and the present invention does not limit specific set-up mode.For example, can be pre- Capacity threshold is first arranged according to total amount of memory, information capacity is compared with capacity threshold, is waited for according to comparison result determination Whether the data information of scanning meets default contractive condition for another example, can with dynamic access memory active volume, by information capacity with Memory active volume is compared, and determines whether data information to be scanned meets default contractive condition according to comparison result.
Step S120:If so, being compressed to data information to be scanned, compressed data information is loaded into memory In.
When determining that data information to be scanned meets default contractive condition, data information to be scanned is pressed Contracting, and compressed data information is loaded into memory.Wherein, flexibly various compression algorithms can be used to realize when compression, only It wants to achieve the purpose that reduce file size.In the present embodiment, both first file can be compressed in a hard disk and was finished It is loading in memory, can also directly compressed while loading in memory afterwards.
Step S130:It is unziped it for the compressed data information loaded in memory.
This step can be both immediately performed after step S120 is finished, can also after step S120 is finished root It is executed on demand according to needs.It is executed for example, it is also possible to just be directed to the same data message when needing using corresponding data information Decompression.
Step S140:It is parsed for the data information after decompression, with the scanning of determination data information to be scanned As a result.
By this step, analytic expression scanning can be carried out after decompression, to determine scanning result.Which passes through Data information is compressed, only loads compressed data information in memory, so as to avoid due to data information is excessive The problem of can not scanning, enables scan method suitable for all kinds of big files, has widened service application scene.
According to the scan method of data information provided in this embodiment, when the information capacity according to data information to be scanned When judging that data information to be scanned meets default contractive condition, data information to be scanned is compressed, after compression Data information be loaded into memory;It is parsed after being unziped it for the compressed data information loaded in memory, With the scanning result of determination data information to be scanned.It can be seen which is by compressing data information, only including Deposit the compressed data information of middle load, so as to avoid because data information is excessive can not scan the problem of, make scan method Service application scene can have been widened suitable for all kinds of big files.
Fig. 2 shows the flow diagrams of the scan method of the data information of another embodiment of the present invention.In this implementation In example, illustrated so that data information is to update the data information as an example.This updates the data the update packet that information can be to be downloaded Etc. forms information, for realizing software or the more new function of system.Certainly, in other embodiments of the invention, data letter Breath can also be loophole repair data information, for example, it may be the data information of the forms such as service packs, is repaired for realizing automatic Function.As shown in Fig. 2, this method includes:
Step S210:It is pre- to judge whether data information to be scanned meets according to the information capacity of data information to be scanned If contractive condition.
Due to the occupancy for being mainly used for reducing memory of the present embodiment, in favor of the scanning of big file, therefore, compression is preset Condition can be arranged according to the information capacity and memory information of data information to be scanned.Default contractive condition is described below Two kinds of possible realization methods:
In the first realization method, capacity threshold is set previously according to total amount of memory, by information capacity and capacity threshold Value is compared, and determines whether data information to be scanned meets default contractive condition according to comparison result.Specifically, if memory Total capacity is larger, then capacity threshold can be arranged larger;Conversely, then capacity threshold can be arranged smaller.Correspondingly, When information capacity is more than capacity threshold, determine that data information to be scanned meets default contractive condition.Furthermore it is also possible in conjunction with The external conditions such as scan frequency are arranged the capacity threshold.The realization method, which is equivalent to, pre-sets capacity threshold, every big It is required to execute compression processing in the data information of the capacity threshold.
It, can be with dynamic access memory active volume, by information capacity and memory active volume in second of realization method It is compared, determines whether data information to be scanned meets default contractive condition according to comparison result.Specifically, whenever acquisition To after data information to be scanned, current memory active volume is obtained in real time, then according to the data information to be scanned Comparison result between current memory active volume dynamically determines whether to meet default contractive condition.For example, if this waits sweeping Ratio or difference between the data information retouched and current memory active volume meet certain condition be then determined for compliance with it is default Contractive condition.Indeed, it is possible to according to ratio or difference between data information to be scanned and current memory active volume One adjustable threshold value of dynamic is set, and is determined whether according to the threshold value to meet default contractive condition.Which can be adjusted dynamically Whole contractive condition, so that current compression condition is more in line with current system mode.
In practical application, above-mentioned two kinds of realization methods both can be used alone, and can also be used in combination, the present invention is to this It does not limit.
Step S220:If so, data information to be scanned is divided into multiple data blocks;Respectively be directed to each data block into Row compression, obtains compressed data block, and data block index is established for the compressed data block;By the compressed data block It is loaded into memory, and is indexed according to data block and generate index file.
When determining that data information to be scanned meets default contractive condition, data information to be scanned is pressed Contracting, and compressed data information is loaded into memory.
Specifically, in the present embodiment, for the ease of being split processing to big file, memory headroom is saved to realize Data information to be scanned is divided into multiple data blocks, and needle respectively by effect in advance before executing compression to data information Each data block is compressed, obtains compressed each data block, and compressed each data block is loaded into memory In.Wherein, when dividing data block, can according to the information sizes of the various pieces for including in data information, content type, make It is divided with many factors such as frequencies.After division, it is directed to each data block respectively and executes compression processing, in order to follow-up mistake Targetedly decompression operation is realized in journey.
In addition, for the ease of realizing targetedly decompression operation in the follow-up process, information inquiry efficiency is promoted, In the present embodiment, data block index further is established for the compressed data block, and indexed according to data block and generate index text Part.For example, when a data information is divided into five data blocks, it is directed to each compressed data block respectively and is arranged one Data block indexes, and five data block indexes are stored in indexed file, in order to quickly position to corresponding data block.
Step S230:According to each data block index for including in index file, compressed each data are obtained respectively Block, and be directed to each data block got respectively and unzip it.
This step can be both immediately performed after step S220 is finished, can also after step S220 is finished root It is executed on demand according to needs.
For example, in a kind of specific business scenario, scanning engine can be handled as follows:
First, each data information to be scanned is all loaded onto in memory.This process correspond to step S210 and Step S220.In the process, the essential attribute for needing to scan each data information, for example, file size, file type, text Part renewal time etc.;Each data information is all loaded onto in memory according to essential attribute.For example, can sentence in the process It is disconnected whether to need to execute compression processing to file, and preferentially load the file that need not be compressed;And/or it will need not compress The file that file and needs compress is stored separately.In this step, if judging, a file meets default reduced rule, right It is stored in memory after being compressed, to save memory headroom.
Then, the data information of the processing of needs is obtained from memory according to default processing sequence and executes scan process. This process corresponds to step S230.Wherein, default processing sequence can be priority processing be not required to compression data, post-processing need All kinds of Cahn-Ingold-Prelog sequence rules such as the data to be compressed.It can be seen that realized on demand on this process nature, according to current processing into Degree obtains next data information to be scanned from memory.When specific acquisition, it is contemplated that if after some big files all decompress Obtained file size is possible to be more than memory residue free space, even if being not more than memory residue free space, it is also possible to Running efficiency of system is influenced because EMS memory occupation is excessive.In order to solve this problem, in the process, it is wrapped according in index file The each data block index contained, obtains compressed each data block respectively, and be directed to respectively each data block for getting into Row decompression.For example, it is assumed that a complete compressed data information includes altogether 10 data blocks, if simultaneously by 10 data Block, which unzips to processing in memory, will cause memory consumption excessive, therefore, one only be decompressed every time according to the needs of actual treatment Or two or three of data blocks can effectively prevent leading because data information is excessive to reduce the memory consumption in the same time The phenomenon that causing scanning to fail.
Step S240:It is parsed for each data block after decompression, with sweeping for determination data information to be scanned Retouch result.
Wherein, after step S230 is finished and gets a data block, then solution is extruded by this step The data block come is parsed, and the analysis result of the data block is obtained.Finally, according to each number for including in a data information Analysis result according to block is the entire scan result that can determine the data information to be scanned.
It can be seen that the present embodiment by executing compression processing in memory, (conventional compression processing is all in a hard disk Realize) and directly store compressed file in memory, occupancy of the big file to memory can be effectively reduced, to carry Rise running efficiency of system.Also, since compressed file can be decompressed according to data block, without primary for whole numbers It is believed that breath is decompressed, therefore the amount of memory that big file occupies in scanning process is significantly reduced, even if file size is big Scanning function can be also completed by this way in memory remaining space, to widen the application range of scanning function, made Originally be limited to memory headroom and can not the application of application scanning function can also realize scanning function, to provide to the user more Add comprehensive service.Which is particularly suitable in scanning more new scene, since update library is very huge, lead to tradition Sweeping scheme can not apply update library scanning can effectively solve the problem that this problem after the scheme in the present invention.
In addition, those skilled in the art can also carry out various possible changes or extension to above-described embodiment.For example, It executes and judges whether data information to be scanned meets default contractive condition according to the information capacity of data information to be scanned Before step, following steps are can further include:
It monitors whether to receive shutdown command;Operation is intercepted if so, being executed for the shutdown command, and executes above-mentioned Judge whether the data information to be scanned meets the step of default contractive condition according to the information capacity of data information to be scanned Suddenly.
It can just be scanned since file to be scanned must be loaded in memory, can be occupied during scanning Prodigious memory consumes many resources, and the use for influencing computer even results in it and can not use, to affect user just It is often used computer, to solve the above-mentioned problems, can terminate to use computer in user, start to sweep after triggering shutdown command Retouch process.It, can be by predefining the shutdown function for sending shutdown command, so when monitoring whether to receive shutdown command Afterwards by hooking function or the other types of function of shutdown function can be associated with above-mentioned shutdown function is monitored, led to Monitoring shutdown function is crossed so as to monitor whether to receive shutdown command in time.If so, can be by suspending shutdown command Transmission mode come execute intercept operation.
Optionally, after executing the step of intercepting operation for shutdown command, in order to save resource, processing speed is promoted, It is further target process, target end process by the Processes Tag unrelated with scan operation.For example open on computers Such as document, the various loophole reparations such as browser operate unrelated process and can be marked as target process, and terminate above-mentioned Target process.Unrelated process is operated with loophole reparation by turning off, the efficiency for executing loophole reparation operation can be improved, is reduced Repair the occupied time.After target end process, executes the above-mentioned information capacity according to data information to be scanned and sentence Break the data information to be scanned the step of whether meeting default contractive condition and subsequent step, finally when monitoring to wait sweeping When the data information retouched is scanned, exit-entry operation is executed for above-mentioned shutdown command.Specifically, can be referred to by restoring shutdown The mode of the transmission of order executes exit-entry operation.After system receives the shutdown command of transmission, shutdown behaviour can be executed at this time It shuts down.
By above-mentioned execution step, computer can not be used in user, start data letter when triggering shutdown command Scan procedure is ceased, is avoided when user uses computer, since scan data information occupies in a large amount of computer The case where influencing user's normal use computer with resource is deposited, to greatly improve user experience.
Fig. 3 shows a kind of apparatus structure of the scanning means for data information that further embodiment of this invention provides Figure, as shown in figure 3, described device includes:
Judgment module 33, suitable for judging the data information to be scanned according to the information capacity of data information to be scanned Whether default contractive condition is met;
Load-on module 34, suitable for if so, being compressed to the data information to be scanned, by compressed data information It is loaded into memory;
Decompression module 35, suitable for being unziped it for the compressed data information loaded in memory;
Determining module 36, suitable for being parsed for the data information after decompression, with the determination data to be scanned The scanning result of information.
In another embodiment, wherein the judgment module 33 is particularly adapted to:
Capacity threshold is set previously according to total amount of memory, described information capacity is compared with the capacity threshold, Determine whether the data information to be scanned meets default contractive condition according to comparison result;And/or
Described information capacity is compared by dynamic access memory active volume with the memory active volume, according to than Relatively result determines whether the data information to be scanned meets default contractive condition.
Optionally, wherein the load-on module 34 is particularly adapted to:
The data information to be scanned is divided into multiple data blocks;
It is compressed respectively for each data block, obtains compressed data block, established for the compressed data block Data block indexes;
The compressed data block is loaded into memory, and is indexed according to the data block and generates index file.
Optionally, wherein the decompression module 35 is particularly adapted to:
According to each data block index for including in the index file, compressed each data block is obtained respectively, and The each data block got is directed to respectively to unzip it.
Optionally, wherein the data information includes:Update the data information, loophole repair data information.
Optionally, wherein described device further comprises:
Monitoring modular 31 receives shutdown command suitable for monitoring whether;
Execution module 32 is suitable for intercepting operation if so, executing for the shutdown command, and executes in the judgment module Content.
Optionally, wherein described device further comprises clearance module 37,
It is suitable for:When monitoring that data information to be scanned is scanned, exit-entry operation is executed for the shutdown command.
Optionally, wherein the execution module 32 is further adapted for:
It is target process by the Processes Tag unrelated with scan operation, terminates the target process.
The concrete structure and operation principle of above-mentioned modules can refer to the description of corresponding steps in embodiment of the method, herein It repeats no more.
The embodiment of the present application provides a kind of nonvolatile computer storage media, and computer storage media is stored at least One executable instruction, the computer executable instructions can perform the scanning side of the data information in above-mentioned any means embodiment Method.
Fig. 4 shows the structural schematic diagram of a kind of electronic equipment according to the ... of the embodiment of the present invention, the specific embodiment of the invention The specific implementation of electronic equipment is not limited.
As shown in figure 4, the electronic equipment may include:Processor (processor) 402, communication interface (Communications Interface) 404, memory (memory) 406 and communication bus 408.
Wherein:
Processor 402, communication interface 404 and memory 406 complete mutual communication by communication bus 408.
Communication interface 404, for being communicated with the network element of miscellaneous equipment such as client or other servers etc..
Processor 402, for executing program 410, in the scan method embodiment that can specifically execute above-mentioned data information Correlation step.
Specifically, program 410 may include program code, which includes computer-managed instruction.
Processor 402 may be central processor CPU or specific integrated circuit ASIC (Application Specific Integrated Circuit), or be arranged to implement the integrated electricity of one or more of the embodiment of the present invention Road.The one or more processors that electronic equipment includes can be same type of processor, such as one or more CPU;Also may be used To be different types of processor, such as one or more CPU and one or more ASIC.
Memory 406, for storing program 410.Memory 406 may include high-speed RAM memory, it is also possible to further include Nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.
Program 410 specifically can be used for so that processor 402 executes following operation:
Judge whether the data information to be scanned meets default pressure according to the information capacity of data information to be scanned Contracting condition;
If so, being compressed to the data information to be scanned, compressed data information is loaded into memory;
It is unziped it for the compressed data information loaded in memory;
It is parsed for the data information after decompression, with the scanning result of the determination data information to be scanned.
In a kind of optional mode, program 410 can specifically be further used for so that processor 402 executes following behaviour Make:
Capacity threshold is set previously according to total amount of memory, described information capacity is compared with the capacity threshold, Determine whether the data information to be scanned meets default contractive condition according to comparison result;And/or
Described information capacity is compared by dynamic access memory active volume with the memory active volume, according to than Relatively result determines whether the data information to be scanned meets default contractive condition.
In a kind of optional mode, program 410 can specifically be further used for so that processor 402 executes following behaviour Make:The data information to be scanned is divided into multiple data blocks;
It is compressed respectively for each data block, obtains compressed data block, established for the compressed data block Data block indexes;
The compressed data block is loaded into memory, and is indexed according to the data block and generates index file.
In a kind of optional mode, program 410 can specifically be further used for so that processor 402 executes following behaviour Make:According to each data block index for including in the index file, compressed each data block, and needle respectively are obtained respectively The each data block got is unziped it.
In a kind of optional mode, program 410 can specifically be further used for so that processor 402 executes following behaviour Make:The data information includes:Update the data information, loophole repair data information.
In a kind of optional mode, program 410 can specifically be further used for so that processor 402 executes following behaviour Make:It monitors whether to receive shutdown command;
Operation is intercepted if so, being executed for the shutdown command, and executes the letter according to data information to be scanned Breath capacity judges the step of whether data information to be scanned meets default contractive condition.
In a kind of optional mode, program 410 can specifically be further used for so that processor 402 executes following behaviour Make:When monitoring that data information to be scanned is scanned, exit-entry operation is executed for the shutdown command.
In a kind of optional mode, program 410 can specifically be further used for so that processor 402 executes following behaviour Make:It is target process by the Processes Tag unrelated with scan operation, terminates the target process.
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein. Various general-purpose systems can also be used together with teaching based on this.As described above, it constructs required by this kind of system Structure be obvious.In addition, the present invention is not also directed to any certain programmed language.It should be understood that can utilize various Programming language realizes the content of invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention Example can be put into practice without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this description.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of each inventive aspect, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:It is i.e. required to protect Shield the present invention claims the more features of feature than being expressly recited in each claim.More precisely, as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following specific implementation mode are expressly incorporated in the specific implementation mode, wherein each claim itself All as a separate embodiment of the present invention.
Those skilled in the art, which are appreciated that, to carry out adaptively the module in the equipment in embodiment Change and they are arranged in the one or more equipment different from the embodiment.It can be the module or list in embodiment Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it may be used any Combination is disclosed to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so to appoint Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power Profit requires, abstract and attached drawing) disclosed in each feature can be by providing the alternative features of identical, equivalent or similar purpose come generation It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments means in of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed One of meaning mode can use in any combination.
The all parts embodiment of the present invention can be with hardware realization, or to run on one or more processors Software module realize, or realized with combination thereof.It will be understood by those of skill in the art that can use in practice In the scanning means of microprocessor or digital signal processor (DSP) to realize data information according to the ... of the embodiment of the present invention The some or all functions of some or all components.The present invention is also implemented as executing method as described herein Some or all equipment or program of device (for example, computer program and computer program product).Such reality The program of the existing present invention can may be stored on the computer-readable medium, or can be with the form of one or more signal. Such signal can be downloaded from internet website and be obtained, and either be provided on carrier signal or in any other forms It provides.
It should be noted that the present invention will be described rather than limits the invention for above-described embodiment, and ability Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference mark between bracket should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.In the unit claims listing several devices, several in these devices can be by the same hardware branch To embody.The use of word first, second, and third does not indicate that any sequence.These words can be explained and be run after fame Claim.
In addition, the invention also discloses:A1. a kind of scan method of data information, including:
Judge whether the data information to be scanned meets default pressure according to the information capacity of data information to be scanned Contracting condition;
If so, being compressed to the data information to be scanned, compressed data information is loaded into memory;
It is unziped it for the compressed data information loaded in memory;
It is parsed for the data information after decompression, with the scanning result of the determination data information to be scanned.
A2. the method according to claim A1, wherein the information capacity according to data information to be scanned is sentenced Break and specifically includes the step of whether data information to be scanned meets default contractive condition:
Capacity threshold is set previously according to total amount of memory, described information capacity is compared with the capacity threshold, Determine whether the data information to be scanned meets default contractive condition according to comparison result;And/or
Described information capacity is compared by dynamic access memory active volume with the memory active volume, according to than Relatively result determines whether the data information to be scanned meets default contractive condition.
A3. the method according to claim A1 or A2, wherein described that the data information to be scanned is pressed Contracting, is loaded into the step in memory by compressed data information and specifically includes:
The data information to be scanned is divided into multiple data blocks;
It is compressed respectively for each data block, obtains compressed data block, established for the compressed data block Data block indexes;
The compressed data block is loaded into memory, and is indexed according to the data block and generates index file.
A4. the method according to claim A3, wherein described for the compressed data loaded in memory The step of information unzips it specifically includes:
According to each data block index for including in the index file, compressed each data block is obtained respectively, and The each data block got is directed to respectively to unzip it.
A5. according to any methods of claim A1-A4, wherein the data information includes:Update the data letter Breath, loophole repair data information.
A6. according to any methods of claim A1-A5, wherein the letter according to data information to be scanned Before breath capacity judges the step of whether data information to be scanned meets default contractive condition, further comprise:
It monitors whether to receive shutdown command;
Operation is intercepted if so, being executed for the shutdown command, and executes the letter according to data information to be scanned Breath capacity judges the step of whether data information to be scanned meets default contractive condition.
A7. the method according to claim A6, wherein the method further includes:
When monitoring that data information to be scanned is scanned, exit-entry operation is executed for the shutdown command.
A8. the method according to claim A6 or A7, wherein described executed for the shutdown command intercepts operation The step of after, further comprise:
It is target process by the Processes Tag unrelated with scan operation, terminates the target process.
B9. a kind of scanning means of data information, including:
Judgment module, suitable for judging that the data information to be scanned is according to the information capacity of data information to be scanned It is no to meet default contractive condition;
Load-on module, suitable for if so, compressed to the data information to be scanned, compressed data information is added It is downloaded in memory;
Decompression module, suitable for being unziped it for the compressed data information loaded in memory;
Determining module is believed suitable for being parsed for the data information after decompression with the determination data to be scanned The scanning result of breath.
B10. the device according to claim B9, wherein the judgment module is particularly adapted to:
Capacity threshold is set previously according to total amount of memory, described information capacity is compared with the capacity threshold, Determine whether the data information to be scanned meets default contractive condition according to comparison result;And/or
Described information capacity is compared by dynamic access memory active volume with the memory active volume, according to than Relatively result determines whether the data information to be scanned meets default contractive condition.
B11. the device according to claim B9 or B10, wherein the load-on module is particularly adapted to:
The data information to be scanned is divided into multiple data blocks;
It is compressed respectively for each data block, obtains compressed data block, established for the compressed data block Data block indexes;
The compressed data block is loaded into memory, and is indexed according to the data block and generates index file.
B12. the device according to claim B11, wherein the decompression module is particularly adapted to:
According to each data block index for including in the index file, compressed each data block is obtained respectively, and The each data block got is directed to respectively to unzip it.
B13. according to any devices of claim B9-B12, wherein the data information includes:Update the data letter Breath, loophole repair data information.
B14. according to any devices of claim B9-B13, wherein described device further comprises:
Monitoring modular receives shutdown command suitable for monitoring whether;
Execution module is suitable for intercepting operation if so, executing for the shutdown command, and executes in the judgment module Content.
B15. the device according to claim B14, wherein described device further comprises clearance module,
It is suitable for:When monitoring that data information to be scanned is scanned, exit-entry operation is executed for the shutdown command.
B16. the device according to claim B14 or B15, wherein the execution module is further adapted for:
It is target process by the Processes Tag unrelated with scan operation, terminates the target process.
C17. a kind of electronic equipment, including:Processor, memory, communication interface and communication bus, the processor, institute It states memory and the communication interface completes mutual communication by the communication bus;
The memory makes the processor execute as weighed for storing an at least executable instruction, the executable instruction Profit requires the corresponding operation of the scan method of the data information described in any one of A1-A8.
D18. a kind of computer storage media is stored with an at least executable instruction in the storage medium, described to hold Row instruction makes the corresponding operation of scan method of data information of the processor execution as described in any one of claim A1-A8.

Claims (10)

1. a kind of scan method of data information, including:
Judge whether the data information to be scanned meets default compressor bar according to the information capacity of data information to be scanned Part;
If so, being compressed to the data information to be scanned, compressed data information is loaded into memory;
It is unziped it for the compressed data information loaded in memory;
It is parsed for the data information after decompression, with the scanning result of the determination data information to be scanned.
2. according to the method described in claim 1, wherein, it is described judged according to the information capacity of data information to be scanned described in The step of whether data information to be scanned meets default contractive condition specifically includes:
Capacity threshold is set previously according to total amount of memory, described information capacity is compared with the capacity threshold, according to Comparison result determines whether the data information to be scanned meets default contractive condition;And/or
Described information capacity is compared by dynamic access memory active volume with the memory active volume, is tied according to comparing Fruit determines whether the data information to be scanned meets default contractive condition.
3. method according to claim 1 or 2, wherein it is described that the data information to be scanned is compressed, it will press Data information after contracting is loaded into the step in memory and specifically includes:
The data information to be scanned is divided into multiple data blocks;
It is compressed respectively for each data block, obtains compressed data block, data are established for the compressed data block Block indexes;
The compressed data block is loaded into memory, and is indexed according to the data block and generates index file.
4. according to the method described in claim 3, wherein, it is described for the compressed data information loaded in memory into The step of row decompression, specifically includes:
According to each data block index for including in the index file, compressed each data block is obtained respectively, and respectively It is unziped it for each data block got.
5. according to any methods of claim 1-4, wherein the data information includes:Update the data information, loophole is repaiied Complex data information.
6. according to any methods of claim 1-5, wherein the information capacity according to data information to be scanned is sentenced Before the step of whether data information to be scanned that breaks meets default contractive condition, further comprise:
It monitors whether to receive shutdown command;
Operation is intercepted if so, being executed for the shutdown command, and is executed described according to the information of data information to be scanned appearance Amount judges the step of whether data information to be scanned meets default contractive condition.
7. according to the method described in claim 6, wherein, the method further includes:
When monitoring that data information to be scanned is scanned, exit-entry operation is executed for the shutdown command.
8. a kind of scanning means of data information, including:
Judgment module, suitable for judging whether the data information to be scanned accords with according to the information capacity of data information to be scanned It closes and presets contractive condition;
Load-on module, suitable for if so, compressed to the data information to be scanned, compressed data information is loaded into In memory;
Decompression module, suitable for being unziped it for the compressed data information loaded in memory;
Determining module, suitable for being parsed for the data information after decompression, with the determination data information to be scanned Scanning result.
9. a kind of electronic equipment, including:Processor, memory, communication interface and communication bus, the processor, the storage Device and the communication interface complete mutual communication by the communication bus;
The memory makes the processor execute as right is wanted for storing an at least executable instruction, the executable instruction Ask the corresponding operation of the scan method of the data information described in any one of 1-7.
10. a kind of computer storage media, an at least executable instruction, the executable instruction are stored in the storage medium Make the corresponding operation of scan method of data information of the processor execution as described in any one of claim 1-7.
CN201810076830.0A 2018-01-26 2018-01-26 Data information scanning method and device Expired - Fee Related CN108446300B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810076830.0A CN108446300B (en) 2018-01-26 2018-01-26 Data information scanning method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810076830.0A CN108446300B (en) 2018-01-26 2018-01-26 Data information scanning method and device

Publications (2)

Publication Number Publication Date
CN108446300A true CN108446300A (en) 2018-08-24
CN108446300B CN108446300B (en) 2021-04-09

Family

ID=63191028

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810076830.0A Expired - Fee Related CN108446300B (en) 2018-01-26 2018-01-26 Data information scanning method and device

Country Status (1)

Country Link
CN (1) CN108446300B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110941478A (en) * 2018-09-21 2020-03-31 北京奇虎科技有限公司 File scanning task execution method and device and computing equipment
CN111510155A (en) * 2020-04-17 2020-08-07 深圳市科思科技股份有限公司 Data compression method, data decompression method, electronic device and storage medium
CN113452378A (en) * 2021-06-28 2021-09-28 国网北京市电力公司 Twin data compression method and device and computer readable storage medium
CN114116234A (en) * 2022-01-24 2022-03-01 山东捷瑞数字科技股份有限公司 Three-dimensional scene model decompression loading method based on browser

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101930515A (en) * 2010-08-27 2010-12-29 奇智软件(北京)有限公司 System and method for safely decompressing compressed file
CN102025983A (en) * 2010-09-19 2011-04-20 北京邮电大学 Data transmission processing method and system and corresponding light-emitting diode (LED) display system
CN102289484A (en) * 2011-08-03 2011-12-21 Tcl集团股份有限公司 Method for scanning multimedia files of storage equipment based on android system
CN102411628A (en) * 2011-12-19 2012-04-11 Tcl集团股份有限公司 Android system-based file scanning method and device
CN102436421A (en) * 2010-09-29 2012-05-02 腾讯科技(深圳)有限公司 Data caching method
CN103218224A (en) * 2013-03-29 2013-07-24 东莞宇龙通信科技有限公司 Method and terminal for improving utilization ratio of memory space
CN103384884A (en) * 2012-12-11 2013-11-06 华为技术有限公司 File compression method and device, file decompression method and device, and server
CN103793649A (en) * 2013-11-22 2014-05-14 北京奇虎科技有限公司 Method and device for cloud-based safety scanning of files
CN104636165A (en) * 2015-02-02 2015-05-20 广东小天才科技有限公司 Mobile device starting method and device
CN105451042A (en) * 2015-12-14 2016-03-30 福建新大陆通信科技股份有限公司 Set top box based file upgrading system and method
CN105677259A (en) * 2016-02-29 2016-06-15 珠海市魅族科技有限公司 Method for storing file in mobile terminal and mobile terminal
CN105955722A (en) * 2016-04-20 2016-09-21 合肥师范学院 UBI device partition rapid loading method in embedded system
CN106503165A (en) * 2016-10-31 2017-03-15 杭州华为数字技术有限公司 Compression, decompressing method, device and equipment

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101930515A (en) * 2010-08-27 2010-12-29 奇智软件(北京)有限公司 System and method for safely decompressing compressed file
CN102025983A (en) * 2010-09-19 2011-04-20 北京邮电大学 Data transmission processing method and system and corresponding light-emitting diode (LED) display system
CN102436421A (en) * 2010-09-29 2012-05-02 腾讯科技(深圳)有限公司 Data caching method
CN102289484A (en) * 2011-08-03 2011-12-21 Tcl集团股份有限公司 Method for scanning multimedia files of storage equipment based on android system
CN102411628A (en) * 2011-12-19 2012-04-11 Tcl集团股份有限公司 Android system-based file scanning method and device
CN103384884A (en) * 2012-12-11 2013-11-06 华为技术有限公司 File compression method and device, file decompression method and device, and server
CN103218224A (en) * 2013-03-29 2013-07-24 东莞宇龙通信科技有限公司 Method and terminal for improving utilization ratio of memory space
CN103793649A (en) * 2013-11-22 2014-05-14 北京奇虎科技有限公司 Method and device for cloud-based safety scanning of files
CN104636165A (en) * 2015-02-02 2015-05-20 广东小天才科技有限公司 Mobile device starting method and device
CN105451042A (en) * 2015-12-14 2016-03-30 福建新大陆通信科技股份有限公司 Set top box based file upgrading system and method
CN105677259A (en) * 2016-02-29 2016-06-15 珠海市魅族科技有限公司 Method for storing file in mobile terminal and mobile terminal
CN105955722A (en) * 2016-04-20 2016-09-21 合肥师范学院 UBI device partition rapid loading method in embedded system
CN106503165A (en) * 2016-10-31 2017-03-15 杭州华为数字技术有限公司 Compression, decompressing method, device and equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
熊渊琳 等: ""应用于嵌入式平台分块数据压缩的实现"", 《信息安全与技术》 *
蔡颖铭: ""适用于影像检测压缩系统的内存存取方式"", 《世界电子元器件》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110941478A (en) * 2018-09-21 2020-03-31 北京奇虎科技有限公司 File scanning task execution method and device and computing equipment
CN110941478B (en) * 2018-09-21 2024-03-01 北京奇虎科技有限公司 Execution method and device of file scanning task and computing equipment
CN111510155A (en) * 2020-04-17 2020-08-07 深圳市科思科技股份有限公司 Data compression method, data decompression method, electronic device and storage medium
CN111510155B (en) * 2020-04-17 2023-09-26 深圳市科思科技股份有限公司 Data compression method, data decompression method, electronic device and storage medium
CN113452378A (en) * 2021-06-28 2021-09-28 国网北京市电力公司 Twin data compression method and device and computer readable storage medium
CN114116234A (en) * 2022-01-24 2022-03-01 山东捷瑞数字科技股份有限公司 Three-dimensional scene model decompression loading method based on browser

Also Published As

Publication number Publication date
CN108446300B (en) 2021-04-09

Similar Documents

Publication Publication Date Title
CN108446300A (en) The scan method and device of data information
CN108566290B (en) Service configuration management method, system, storage medium and server
CN108365967B (en) Method, system, terminal and computer readable storage medium for dynamically configuring communication parameters
CN104714827B (en) Update of plug-in method and device
US11256817B2 (en) Tool for generating security policies for containers
US9542461B2 (en) Enhancing performance of extract, transform, and load (ETL) jobs
CN105095367B (en) A kind of acquisition method and device of client data
CN102902576B (en) Method, server and system for rendering webpages
CN110321134A (en) A kind of method of application installation package, the storage medium of generating is with application server
CN115237436A (en) Application deployment method and device, electronic equipment and readable storage medium
CN112214250B (en) Application program component loading method and device
CN111294377A (en) Network request sending method of dependency relationship, terminal device and storage medium
CN110908646B (en) Building block type callback function block construction method and device, storage medium and processor
CN108829392B (en) Method and device for reducing transitional drawing, electronic equipment and storage medium
CN102902564B (en) Method and the device of patch are installed
CN111159142A (en) Data processing method and device
CN111338928A (en) Chrome-based browser testing method and device
CN114741173A (en) DAG task arranging method and device, electronic equipment and storage medium
CN112000354A (en) Version information updating method, version information updating device, version information updating equipment and storage medium
CN110825477A (en) Method, device and equipment for loading graphical interface and storage medium
CN110780983A (en) Task exception handling method and device, computer equipment and storage medium
CN111444057A (en) Page performance data acquisition method and device and computing equipment
CN111428209A (en) Application program obfuscation method and device and storage medium
US9235382B2 (en) Input filters and filter-driven input processing
CN109542601B (en) Policy compiling method and device, electronic equipment and computer storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210409