VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Dictionary-Based english Text Compression

by (Tim Miron) yar-interactive software (13 Submissions)
Category: String Manipulation
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (3 Votes)

*Now about 50% faster compress performance, fixed some glitches and improved compression ratio.
*UPDATED: Now supports both upper and lower case words (any sentence should come out fine regardless of case, etc.) + Some performance and compression optimizations.
SEE COMMENTS AT TOP OF COMPRESSION MODULE FOR FULL DETAILS.
This code basically takes a string composed of everyday conversational english, and compresses it to a much smaller string using a set of dictionaries (included), and can also decompress any previously compressed strings..
This code was designed to be applied in a chat environment to save server bandwidth as the server has to echo many messages to hundreds of users many times per minute, this can make a big difference in bandwidth usage and in the case of a mmo game server, can help to ensure smoother gameplay as the game grows. Compared to zlib this is much more efficient at english-language compression, but entirely not suitable for other types of strings that do not contain english words.
This code is intended to be used on the client side, and only includes the procedures necessary to compress and decompress a string, specifically everyday English conversational sentences.

Rate Dictionary-Based english Text Compression

Download Dictionary-Based english Text Compression

Download Dictionary-Based english Text Compression (10 KB)

Dictionary-Based english Text Compression Comments

No comments have been posted about Dictionary-Based english Text Compression. Why not be the first to post a comment about Dictionary-Based english Text Compression.

Post your comment

Subject:
Message:
0/1000 characters