Questions tagged [text-compression]

26 questions
0
votes
0 answers

"enable text compression" on amazon cloudFront

I have a static website hosted on amazon s3 and am trying to boost performance under the opportunities tab of lighhouse audits. My biggest opportunity seems to be text compression. I have followed guides on how to enable text compression through…
0
votes
1 answer

Compress Data in JavaScript and send it to Flask Server

So my team has made a small tool to perform Image Annotation and Labeling. And we were trying to optimize our code. We were able to compress data from the server, but we have been trying to perform compression on data that is being sent from client…
0
votes
1 answer

Compression of XML containing base64 data

I have an XML file which contains long base64 string data. The size of the XML is roughly 6KB, I want to reduce the size of the XML to somewhere about 1.5 to 2KB. The text compression I am looking for should be lossless. I have tried to use a lot of…
harshkumar
  • 23
  • 5
0
votes
0 answers

Text compressing - Assembly Language

My mission is to basically compress a file, compress data (just alphabet letters without even space) in assembly. What I've done so far: *Received all the data from the txt file *Put it in an array in the following order: the letter with the most…
0
votes
1 answer

log module with pre-allocated memory

I am writing a logging mechanism that will be used by the rest of the code to log alphanumeric data to file. Every other module in the system will be sending alphanumeric sentences (a couple of words at max) to be written to file continuously. The…
0
votes
1 answer

Canonical Huffman Encoder : Contents of Encoded Bitstream

Let's say we have the following canonical Huffman code table. Symbol Code-length Codeword A 2 00 B 2 01 C 2 10 D 2 11 Now, we read the symbols from a input…
0
votes
1 answer

Encode/Decode a given string on a shared given (non standard) charset in a minimal byte array

I'm looking for a generic algorithm which encode / decode a given string on a defined chars set to / from a byte array. It must use minimal space. I started developping mine which is a kind of Base'n' to Base 2 algorithm, but I think something like…
Jeremy D
  • 445
  • 5
  • 19
0
votes
1 answer

How to compress / decompress string with using SevenZip - 7Zip

There is so poor documentation so i am struggling to make this run I added dll files and proper references Finally it compresses string but giving error when i de-compress Can you tell me error is where ? public static string…
MonsterMMORPG
  • 20,310
  • 69
  • 183
  • 306
0
votes
1 answer

Most effective way of compressing HTML source , saving at the database and fetching back

I am writing a crawler atm and i am saving crawled pages source data at the database as a nvarchar(max) As you can guess this is taking huge space so i believe it would be better apporach for me to compress HTML source at the C# - then save it at…
MonsterMMORPG
  • 20,310
  • 69
  • 183
  • 306
-1
votes
2 answers

Old ASCII Protocol Avatar Question

For anyone that remembers the protocol Avatar, (I'm pretty sure this was it's name) I'm trying to find information on it. All I've found so far, is that it's an ANSI style compression protocol, done by compressing common ANSI escape sequences. But,…
LarryF
  • 4,617
  • 4
  • 27
  • 40
-2
votes
0 answers

Compressing long binary data in lossless format

I want to know if there's an algorithm/regex to do the following search in a string: I want a regex or python code to find the first 1100 or 0011 pattern repeating bits so I could assign a separate signal to the found bit stream. Refer the image…
1
2