HTML file compression method and device and electronic equipment
A file compression and file technology, applied in the field of web pages, can solve the problems of large compression and inability to take into account
Active Publication Date: 2018-03-20
ALIBABA GRP HLDG LTD
View PDF6 Cites 1 Cited by
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
[0006] This application provides an HTML file compression method, device and electronic equipment to solve the problem that the prior art cannot take into account the large compression strength and the preservation of HTML semantics
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 moreImage
Smart Image Click on the blue labels to locate them in the text.
Smart ImageViewing Examples
Examples
Experimental program
Comparison scheme
Effect test
example 1
[0137] example 1, If the label ranks second in the label frequency group, it should be calculated according to the formula:
[0138] Token(2)=Token(floor(2 / 5))+AvaiableCharSet(2%5)
[0139] =Token(0)+AvaiableCharSet(2)=AvaiableCharSet(2)="0x02"
[0140] ,but The corresponding compressed flag is "0x02".
example 2
[0141] Example 2, if the href attribute name ranks 7th in the attribute frequency array, it should be calculated according to the formula:
[0142] Token(7)=Token(floor(7 / 5))+AvaiableCharSet(7%5)
[0143] =Token(1)+AvaiableCharSet(7%5)
[0144] =AvaiableCharSet(1)+AvaiableCharSet(2)="0x010x02"
[0145] , the compression mark corresponding to the href attribute is "0x010x02"
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
Login to View More Abstract
The invention discloses an HTML file compression method and device, electronic equipment, file decompression method and device and electronic equipment. The HTML file compression method comprises thesteps of generating all element constituting units of preset types and the corresponding relation among compression marks corresponding to the element constituting units according to a to-be-compressed HTML file and a preset compression mark basic character set to form a corresponding relation set; converting all the element constituting units into compression marks corresponding to all the element constituting units according to the corresponding relation set to obtain compressed file content; generating a compression file of the to-be-compressed HTML file according to the compressed file content and the corresponding relation set. By means of the HTML file compression method, the HTML element constituting units can be effectively simplified, then the size of an original HTML text is reduced, and therefore the method has the two advantage of considering high compression force and keeping HTML semantics.
Description
technical field [0001] The present application relates to web page technology, in particular to an HTML file compression method, device and electronic equipment; correspondingly, the present application also relates to a file decompression method, device and electronic equipment. Background technique [0002] The importance of HTML (Hypertext Markup Language) as the most widely used language in Internet applications is self-evident. Although with the development of hardware technology, the speed of network transmission and terminal processing capabilities are constantly improving, the structure of HTML pages has also changed. HTML pages are becoming more and more complex, and the page size is also increasing, so it is still very important to compress HTML pages in a targeted manner. For example, in the field of data capture, a large number of original HTML pages need to be collected and stored, so the size of the HTML page directly determines its hardware investment cost, an...
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
Login to View More IPC IPC(8): G06F17/30
CPCG06F16/88
Inventor 邢少程尚明马帅李晓栓
Owner ALIBABA GRP HLDG LTD



