CN103731393A - Method for compressing Web resource data - Google Patents
Method for compressing Web resource data Download PDFInfo
- Publication number
- CN103731393A CN103731393A CN201210380719.3A CN201210380719A CN103731393A CN 103731393 A CN103731393 A CN 103731393A CN 201210380719 A CN201210380719 A CN 201210380719A CN 103731393 A CN103731393 A CN 103731393A
- Authority
- CN
- China
- Prior art keywords
- web resource
- data
- character string
- web
- compressed
- 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.)
- Pending
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a method for compressing Web resource data. The method includes the steps that sign characters of different types are utilized to replace file character strings of the Web data, static data and dynamic data of the Web data are respectively compressed and then merged, and then the effects of the size of the compressed the data and increasing the response speed of a server are achieved.
Description
Technical field
The present invention relates to Web resource data compression method, be applicable to server performance optimization in Web, cloud computing and distribution application system and promote.
Background technology
Along with the high speed development of the network information technology, user all over the world can be easy to same various countries variety of way and carry out the webpage of download package containing text, picture, multimedia file, and often these web data amounts are all very large, need to download for a long time and wait for, caused a large number of users to wait for and abandon link because being unwilling, thereby cause a large amount of websites to reduce exposure rate and link number, finally cause the wasting of resources.
Summary of the invention
The present invention is directed to above-mentioned the deficiencies in the prior art provides a kind of compression method of Web resource data, be intended to reduce the data volume of the Web application page, to reach Web download, stand-by period, the data network bandwidth occupancy rate etc. of reducing, thereby to the effect that promotes Web service performance.
Described method comprises:
(1) former the file of Web resource character string is converted to comprise numeral and the sign character of alphabetical type for character string, thereby the file character string of compressed resource;
(2) static data in Web resource and dynamic data compressed respectively and merged, thereby obtaining complete Web resource compressed package;
(3), when user asks Web resource, provide the compressed package of the Web resource in step (2).
By technique scheme, found out, the invention provides and a kind ofly can comprise numeral and the combining characters string of alphabetical type and effectively reduce the method for Web resource file size by use.
According to summary of the invention, described Web resource is ASP kind.
According to summary of the invention, compressed content can comprise the function in script and variable name in ASP.
Accompanying drawing explanation
Fig. 1 is the combined arrangement for character string in Web resource data compression method of the present invention.
Fig. 2 is the flow chart of Web resource data compression method execution mode of the present invention;
Embodiment
Accompanying drawing and concrete case study on implementation will be utilized below; further set forth the present invention; following instance only fits for illustrating that the present invention joins the method realizing; and be not used in, limit the scope of the invention; reading after the present invention; by modification, replacement or the simple modifications of the equivalent form of value, all fall within the affiliated right protection range of the present invention arbitrarily.
Take general Web server as example, it has simple functions compared with general server.As shown in Figure 2, Web resource data compression method is as follows:
1. with user orientation server, sent a Web request of data;
2. server receives Web request of data and starts to respond user's Web request of data;
3. server makes to be asked the former character string of Web resource to be converted into numerical character as shown in Figure 1 and the character string of alphabetic character combination by compression budget law, and the Web resource here can comprise the file of ASP type;
4. after former character string is converted to for character string, by the compression queue of server end, the variable name in the script of ASP and function name are compressed;
5. subsequently, server lookup device is with object oriented, ID or itself match query item in static database, i.e. the static data compressed package of Web resource request.This database can be any memory space that can store static data compressed package, includes but not limited to internal memory, magnetic disc store etc.;
6. simultaneously, server is according to the dynamic data of the object oriented of Web resource request, ID or itself match query in dynamic data base, for example: according to the original position of the dynamic script in VBScript script, as be the 1st row, and end position, as be the 50th row, read in this JavaScript script the 1st data that walk to the 50th row, to obtain the dynamic script corresponding with this VBScript script;
7. then, server merges static data and dynamic data after compression, and enters wait-for-response storage queue;
8. server end returns to user side by the Web resource data after compression;
9. user side calculates the Web resource data after compression according to the predefined regular expression of computer, and call local Web program and transform, and by Web displaying interface.
Claims (4)
1. a compression method for Web resource data, is characterized in that, described method comprises:
1) former the file of Web resource character string is converted to comprise numeral and alphabetic class ocra font ocr for character string, thereby the file character string of compressed resource;
2) static data in Web resource and dynamic data compressed respectively and merged, thereby obtaining complete Web resource compressed package;
3), when user asks Web resource, provide the compressed package of the Web resource in step (2).
2. the method for claim 1, when request Web resource, compresses described Web resource according to the compressed information of storage.
3. the method for claim 1, the method for wherein changing former character string comprises: compression is included in function name and the variable name of script in ASP.
4. for character string, comprise numerical character type and alphabetic character type as claimed in claim 1.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210380719.3A CN103731393A (en) | 2012-10-10 | 2012-10-10 | Method for compressing Web resource data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210380719.3A CN103731393A (en) | 2012-10-10 | 2012-10-10 | Method for compressing Web resource data |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103731393A true CN103731393A (en) | 2014-04-16 |
Family
ID=50455324
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210380719.3A Pending CN103731393A (en) | 2012-10-10 | 2012-10-10 | Method for compressing Web resource data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103731393A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110019055A (en) * | 2018-06-06 | 2019-07-16 | 平安普惠企业管理有限公司 | Without configuration file compression method, compression set, compressing terminal and storage medium |
CN110574348A (en) * | 2017-03-01 | 2019-12-13 | 西门子股份公司 | Data processing apparatus and method |
-
2012
- 2012-10-10 CN CN201210380719.3A patent/CN103731393A/en active Pending
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110574348A (en) * | 2017-03-01 | 2019-12-13 | 西门子股份公司 | Data processing apparatus and method |
US11405358B2 (en) | 2017-03-01 | 2022-08-02 | Siemens Aktiengesellschaft | Network security monitoring of network traffic |
CN110574348B (en) * | 2017-03-01 | 2022-09-27 | 西门子股份公司 | Data processing apparatus and method |
CN110019055A (en) * | 2018-06-06 | 2019-07-16 | 平安普惠企业管理有限公司 | Without configuration file compression method, compression set, compressing terminal and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Boulos et al. | Web GIS in practice VIII: HTML5 and the canvas element for interactive online mapping | |
CN101833542B (en) | Method and device for rendering fonts of user interface | |
CN103345493B (en) | Method that content of text on mobile terminal shows, Apparatus and system | |
KR20140012664A (en) | Method for rearranging web page | |
CN103546498B (en) | It is a kind of that the method and apparatus accessing webpage is provided for mobile terminal | |
CN103425644B (en) | The extracting method of picture and device in Web page text | |
CN103488732A (en) | Generation method and device of static pages | |
CN103853806A (en) | Method and device for converting table | |
CN102033917A (en) | Webpage browsing method for mobile terminal and mobile terminal applying same | |
TW201437826A (en) | Method and device for combining webpage style address | |
CN104111922A (en) | Processing method and device of streaming document | |
CN102207967B (en) | Method and system for automatically providing new browser plugin | |
CN103559194B (en) | A kind of searching method, server, system | |
CN102880707B (en) | Webpage body content recognition methods and device | |
CN108154376B (en) | Data processing method and device | |
CN108769211A (en) | The method for routing and computer readable storage medium of client device, webpage | |
CN103902571A (en) | Method and system for saving webpage complete content and corresponding client end and server | |
CN111881651A (en) | Method for converting UOT streaming document into OFD format document | |
CN103761257A (en) | Webpage handling method and system based on mobile browser | |
CN105404672B (en) | The system and method for web data storage and operation | |
CN102955852A (en) | Method, device and equipment for webpage resource processing | |
US20150095757A1 (en) | Converting electronic documents having visible objects | |
CN103617043A (en) | Method and system with picture webpage data uploading function | |
CN111858612B (en) | Data accelerated access method and device based on graph database and storage medium | |
CN103731393A (en) | Method for compressing Web resource data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20140416 |
|
WD01 | Invention patent application deemed withdrawn after publication |