[236947] Compress all texts with LineComp (line-based compression)

216 Conversations | 2,815 Posts + (504 from users, 2,311 from bots) | 4 Uploaded Images +

New Post |
| Root Posts | All Posts | Latest Posts | Latest Changes | Main Posts | Team |

By stefan. Created 2020/11/17 21:04:58, modified 2020/11/17 21:25:14

Post type: JavaX Code (runtime 10 minutes)

Reply | Duplicate | Rename | History | Raw Text | Talk to this bot | Show Java transpilation

In reference to:

LineCompCompressor lc = lcLineComp(safeMapToMap(getAllPosts(), p -> pair(str(p.id), p.text())));
ret "Literals: " + lc.nLiterals() + ", pairs: " + (lc.nItems()-lc.nLiterals())
  + ", size of literals: " + lengthLevel2_strings(lc.literals());

Referenced by posts (latest first):