MozillaZine

Why does Firefox compress bookmarks&sessions using lz4?| pt2

User Help for Mozilla Firefox
fsckDsk
 
Posts: 28
Joined: April 9th, 2018, 2:12 pm

Post Posted August 29th, 2018, 2:39 pm

Please excuse me for resuming the discussion, but the previous thread was closed without me having a chance to reply.
The OP was not looking for support; just wanted to rant.

Yes, I was looking for support.
See:
FsckDsk wrote:I need help comprehending the purpose of lz4.

And my “rants” are relevant critics.

I needed help decyphering these lz4 files.

Previous thread with original posts: viewtopic.php?f=38&t=3041324.

therube wrote:lz4 is faster, they might say.
lz4 is smaller, they might say.


Faster? No, nothing is faster than plain text.
Smaller? Maybe a few dozens of kilobytes. Certainly less than a fraction of 1 digital photo.


jscher2000 wrote:Compression radically reduces file sizes,

Compressed: 10KB.
Uncompressed: 100KB.
Relatively a large compression (10×), but 90KB in absolute numbers is really no big deal. For comparison: One second of 1080p video footage can be 2000 KB.

morat wrote:lz4 files are an implementation detail of how Firefox stores data.

But is it really necessary?
Maybe for web cache, but should it not be kept optional for bookmarks and sessionstore that amass only a few KB's of disk space?

RobertJ wrote:As usual, you have strong opinions but don't know what you are talking about.

I am talking about lz4.
Please clarify to me, what I allegedly do not know.

therube wrote:He's not speaking of size, but speaking in terms of a human being being able to manipulate ones data.

And in that respect, he is very correct.

Thanks, mate. 8-)
That's precisely what I meant.

I wanted to recover a dead session, but then I hit the walls of lz4 when trying to open it using a plain text editor.
RobertJ wrote:In that case he should build his own browser.

Do you mean recreating a browser from scratch due to one feature?

Grumpus wrote:Maybe this link will help - Export Bookmarks


Can it read lz4 files of orphaned browsing sessions?

the-edmeister

User avatar
 
Posts: 32121
Joined: February 25th, 2003, 12:51 am
Location: Chicago, IL, USA

Post Posted August 29th, 2018, 2:57 pm

This isn't forum isn't part of Mozilla, it is an independent user to user forum. No one here can tell you "why" Mozilla does what it does.

User convenience for reading the internal data files isn't important to Mozilla for most of the internal files; user opinion about how user data isn't important to the developers, either.

Bookmark Backup Reader/Decompressor for Firefox
Drag and drop one .jsonlz4 (or .json) bookmark backup file onto the empty text box.
https://www.jeffersonscher.com/res/bookbackreader.html

And for history .jsonlz4 or .json files
Session History Scrounger for Firefox
https://www.jeffersonscher.com/res/scrounger.html

The 2nd one was posted here: viewtopic.php?p=14807686#p14807686
A mind is a terrible thing to waste. Mine has wandered off and I'm out looking for it.

therube

User avatar
 
Posts: 19157
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Post Posted August 29th, 2018, 7:05 pm

(I wasn't justifying its usage, only stating likely [Mozilla] responses, if they were to respond [which they would never do].
And yes, they likely do have "telemetry", & even tests, that shows that lz4 is faster - perhaps even faster then reading "text" - as counter-intuitive as it might seem.
[Actually, there are tests that may very well legitimize usage. But in this use case, whatever "gains" there may be, compared to a user being able to relatively easily manipulate their data, well... Technology for technologies sake. Lets build a box - because we can.
Somewhere I read some interesting stuff on it. Maybe it was here, LZ4?]

And to note, Mozilla .jar files, like omni.jar, yet another not quite "standard" .jar [.zip] that Mozilla uses. If anything one might think they'd use, oh, they can't can they. lz4 is file, & zip is archive, compression. [Well zip could be file too.])
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript

Grumpus

User avatar
 
Posts: 12015
Joined: October 19th, 2007, 4:23 am
Location: ... Da' Swamp

Post Posted August 30th, 2018, 5:34 am

Speed isn't always the issue with using any kind of compression it could be relative to stability, cross platform, data loss or diminishing use globally of other methods.
With open source there always has to be someone who does the work, design and implementation. If a method is no longer supported it may cause issues with further advances or changes in systems and softwares.
The link lists a method(s) to bypass the json form of bookmarks if LZ4 is your real issue.

therube

User avatar
 
Posts: 19157
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Post Posted August 30th, 2018, 9:07 am

Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript

RobertJ
Moderator

User avatar
 
Posts: 10678
Joined: October 15th, 2003, 7:40 pm
Location: Chicago IL/Oconomowoc WI

Post Posted August 30th, 2018, 10:37 am

the-edmeister wrote:This isn't forum isn't part of Mozilla, it is an independent user to user forum. No one here can tell you "why" Mozilla does what it does.

User convenience for reading the internal data files isn't important to Mozilla for most of the internal files; user opinion about how user data isn't important to the developers, either.


Again this is a support forum not a place to explain the design decisions of Mozilla. And as before I'm locking this thread.

.
FF 63.0.1 - FF 64b8 - FF 65a - TB 60.3 - Mac OSX 10.13.6
Computers I've used: IBM 7094/UNIVAC 1108/IBM 360/DEC PDP11/DEC VAX-11 780/DEC VAXstation 8000/Sun SPARCstation 2/Mac from 1984 to 2018

Return to Firefox Support


Who is online

Users browsing this forum: Bing [Bot] and 17 guests