View Single Post
Old 04-09-2016, 12:48 AM   #1058
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 47,047
Karma: 169810634
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by JSWolf View Post

Quote:
Originally Posted by chrisridd View Post
@Francois_C The zip compression used in epubs is likely to compress all those crazy_long_class_names down anyway, so I doubt you're saving space in the epub. Similarly all those slightly wordy <span class="bold"> ....things - any time you have repeated text that gets compressed really well.

You might save some RAM when the ereader has to open and uncompress the chapter though.
You are saving space removing those long class names.
I just tried an experiment removing my favoured way of managing paragraph styles (as an example, <p class="para"> for default body indented paragraphs) and replacing them with <p>. This did save some space (~ 21Kbytes) in the uncompressed file sizes reported when I opened the epub using 7Zip. OTOH, the size of the compressed epub file changed by a massive 8 bytes. As usual, ASCII text files compress rather well as the attached screen shot shows though the already compressed images are almost incompressible.

Personally, I didn't find the change enough to make changing my default stylesheet a worthwhile project.

The great tragedy of Science — the slaying of a beautiful hypothesis by an ugly fact. — Thomas Henry Huxley
Attached Thumbnails
Click image for larger version

Name:	Silence.jpg
Views:	280
Size:	74.1 KB
ID:	147705  

Last edited by DNSB; 04-09-2016 at 12:54 AM.
DNSB is online now   Reply With Quote