Python Forum
looking 4 py code: run-length compression
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
looking 4 py code: run-length compression
#1
i am looking for (will eventually code it if not found) code to do simple run-length compression.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#2
https://helloacm.com/runlength-compressi...in-python/
Reply
#3
i would modify that so a single character did not need a number so 'abcde' -> 'abcde'.  but as you can tell from the outset, this wastes codespace.

in most cases i would do bzip and put that in base64/32/16 if the transport environment was not 8-bit capable.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Old style TIF compression DPaul 2 1,417 Nov-24-2022, 10:44 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020