Live data from Hacker News

The Finder’s GUI tax can be very expensive

robservatory.com

51–60 of 125 posts

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

#51
post #31

Earlier quoted context omitted.

quiet reminder that writing to file descriptors is blocking. STDERR and STDOUT are file descriptors.

Maybe so, but, as pointed out elsewhere in the thread, printing to stdout is much, much, much, much slower than printing to a file. The fact that stdout is a file descriptor can only explain a vanishingly small quantity of the time cost of using it.

blocking. blocking. blocking. blocking. rtfm

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

#52
post #41
post #24

Earlier quoted context omitted.

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

What is highly unlikely about that? That seems more plausible than, zlib is magically 1000x slower when used by Archive Utility.

It's unlikely it's on purpose. It makes sense in something like tax software you use once a year. It makes no sense at all when doing a bunch of i/o bound operations which are already potentially slow.

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

#53
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…

Yes I've added delays in many web apps, even loader gifs to show fake hard work

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

#54
Reminds of of this Raymond Chen post:

https://blogs.msdn.microsoft.com/oldnewthing/20060220-00/?p=...

A Windows program ran faster if you clicked and held the mouse button on the title bar (as if you were going to move the window) because it would stop the window from re-drawing itself, making whatever loop it was running (and constantly updating the GUI) go faster.

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

#55
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…

I've been asked to blank out a screen in a single page web application and re-render after 250ms when people switch 'folders'. My boss thought it was a familiar user interface pattern to draw attention to the page content. This is... not the silliest thing I have done professionally.

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

#56
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…

So it has to better because it's a Mac and Steve wanted it that way!

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

#58

I've encountered this in command-line programs as well. Print statements take a non-zero amount of time and depending on the language, can be quite slow, so for an otherwise-fast operation in a loop, if it prints a line every time then it can contribute significantly to the overall speed of the program. Removing the print statements in some cases can speed up the code by an order of magnitude.

Avoid verbose flags on tar.

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

#59
post #31

Earlier quoted context omitted.

quiet reminder that writing to file descriptors is blocking. STDERR and STDOUT are file descriptors.

Maybe so, but, as pointed out elsewhere in the thread, printing to stdout is much, much, much, much slower than printing to a file. The fact that stdout is a file descriptor can only explain a vanishingly small quantity of the time cost of using it.

2>&1>/dev/null

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

#60
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…

Don Norman talks about that example of intentional delays in some tax software here: https://vimeo.com/96714148 (approx 52:30).

It sounds like he and his team came up with the idea in that instance.

Post reply on HN