View Single Post
Old 02-06-2024, 02:54 PM   #86
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 14,508
Karma: 108666825
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Quote:
Originally Posted by nabsltd View Post
This is not a problem.

To put it another way, on a device with 32GB of storage, the you could hold 38,593 "bloated" books, but only 205 more if you remove the "bloat". The use of a meaningful class name far outweighs the space savings.

And, it doesn't really matter how long the class name is.
I mentioned this to Jon before. An epub is a zip file.
https://en.wikipedia.org/wiki/ZIP_(f...ession_methods
You can rename a whatever.epub to .zip and unzip it with your desired archive tool. If you are a only having a plain text editor and an archive tool you could even make an epub, though knowing structure of the system text files rather than just the HTML and CSS content is a challenge.

So 10,000 instances of a really long class name really is little more than one instance.
Jon: Zip uses LZW and/or deflate
Original LZW replaces matching arbitrary length data with a 12 bit code (one and a half bytes). https://en.wikipedia.org/wiki/Lempel...%E2%80%93Welch

Deflate
https://en.wikipedia.org/wiki/Deflate
Is more computation to compress and uses some similar ideas.

There is never bloat. Having it human readable for maintaining or fixing bugs in automatic epub generation is important.

Last edited by Quoth; 02-06-2024 at 02:58 PM.
Quoth is offline   Reply With Quote