Live data from Hacker News

The Finder’s GUI tax can be very expensive

robservatory.com

91–100 of 125 posts

Re: The Finder’s GUI tax can be very expensive

#91
post #3

"Finder (nee Archive Utility) should just execute the task without any visual feedback" -- no.

Apple disagrees - the Finder already handles this without any visual feedback for file copy operations - you don't get a file copy progress dialog if it takes less time than you need to react (just an audio confirmation).

Re: The Finder’s GUI tax can be very expensive

#92
post #83
post #24

Earlier quoted context omitted.

That's highly unlikely. Archive Utility is just slow.

It's highly unlikely that it's 1000 times slower than the command line utility to decompress, with which they share the same libs anyway...

It isn't because they don't do anywhere close to the same thing. Watch the video:

http://robservatory.com/postimages/unzipping/finder_v_termin...

Where do you think the people who wrote the thing that happens on the left inserted a gratuitous sleep?

Re: The Finder’s GUI tax can be very expensive

#93
post #92
post #83

Earlier quoted context omitted.

It's highly unlikely that it's 1000 times slower than the command line utility to decompress, with which they share the same libs anyway...

It isn't because they don't do anywhere close to the same thing. Watch the video: http://robservatory.com/postimages/unzipping/finder_v_termin... Where do you think the people who wrote the thing that happens on the left inserted a gratuitous sleep?

For each file, a split second to animate the apparition of the window (or the increase of the existing window), another split second to show the empty progress bar, a millisecond to fork the decompression process, a couple of frames at 60 Hz to animate it being filled, and another split second to animate the disappearance of the window (or the decrease of the existing window).

Re: The Finder’s GUI tax can be very expensive

#94
The rationalizations are kind of silly... oh no, the uninformed users might otherwise do or think this or that; actually, this is shit workmanship, that is all it is, and it's up to the people who have the faintest clue to point at it an laugh until it becomes better workmanship. If you use energy you should use attacking it on defending it, you're now part of it.

Re: The Finder’s GUI tax can be very expensive

#95
Even worse, IMO, is that the default behaviour for Archive Utility is to just unpack the contents of a zip file in a directory under which it's found. Sometimes I just want one file out of a huge zip... Actually, quite often I want to see what's in a zip before uncompressing.

Re: The Finder’s GUI tax can be very expensive

#96

Windows explorer unzip is even worse. Recently in a VM I tried unzipping boost 1.62.0 using explorer in Windows 10. It said it would take over 3 hours. The same file was decompressed on the command line in about a minute using 7zip on the same VM.

For a tool that's supposed to be on most desktops by default, Explorer has some strange inefficiencies, such as the estimation and the loooong "preparing to copy" phase. Perhaps they are carried over from the old Windows NT codebase?

Reminds me of this XKCD haha https://xkcd.com/612/

Re: The Finder’s GUI tax can be very expensive

#97
post #27

Windows explorer unzip is even worse. Recently in a VM I tried unzipping boost 1.62.0 using explorer in Windows 10. It said it would take over 3 hours. The same file was decompressed on the command line in about a minute using 7zip on the same VM.

Windows also always unzips to a fixed scratch directory before creating the real files. That scratch directory is %TMP% or %TEMP%, I think, but it definitely always is on the same disk, typically C: If you unzip files to another disk than where that directory lives, it unzips to its scratch directory, then _copies_ the extracted files to their destination, and finally deletes the scratch files. That's bad in itself,…

For the longest time, I searched for a GUI archiver that didn't use temp directories at all.

Re: The Finder’s GUI tax can be very expensive

#98
post #16

I wonder whether this is not an example of a UI interaction which is slow on purpose, to emphasize how much work the OS is doing for you. TaxAct and TurboTax, for example, both operate on (in the typical case) kilobyte scale data requiring trivial math. They also make both saving the data and calculating taxes take 5+ wall-clock seconds when they actually require milliseconds and nanoseconds respectively. This is lar…

Mercifully, in those tax applications you can often just click the "Next Step" button to skip the useless "loading bars". I laughed out loud when I discovered this.

Re: The Finder’s GUI tax can be very expensive

#99

Just want to add, `unzip` from your terminal window can be used as well. If opening those gz's every month is a pain, you could handle it with something like: `unzip -r my_stuff_{1..99}.zip`

The files in the article aren't zips, they're individually compressed files. Thus, unzip won't work.

Re: The Finder’s GUI tax can be very expensive

#100
post #92

Earlier quoted context omitted.

It isn't because they don't do anywhere close to the same thing. Watch the video: http://robservatory.com/postimages/unzipping/finder_v_termin... Where do you think the people who wrote the thing that happens on the left inserted a gratuitous sleep?

For each file, a split second to animate the apparition of the window (or the increase of the existing window), another split second to show the empty progress bar, a millisecond to fork the decompression process, a couple of frames at 60 Hz to animate it being filled, and another split second to animate the disappearance of the window (or the decrease of the existing window).

None of these are deliberate idling to give the impression of work which is what the original comment was about.
Post reply on HN