Hacker News new | ask | show | jobs
by WDCDev 2293 days ago
> Use the right technology for what you're trying to build.

Yep .. so if you want a rich responsive user experience, DON'T use any web technologies. GMail (AND Gsuite) is a perfect example of how a relatively simple concept like email can be turned into a slow, unresponsive piece of garbage.

7 comments

I'm about 99% sure the store on the PS3 was webtech. That beast of a machine could barely run its own store. They lost a lot of money from me as a result of the store being super-slow, input laggy, and crashy (OOM I assume), and I can't be the only one.

PS4 feels like they've taken webtech all over the OS interface. Its store's snappier than the 3 but the rest of the interface performs way worse. Usable, but far less pleasant.

[EDIT] store should be snappier than the 3, mind, since it's way more powerful hardware—it's still kinda slow, considering.

All sorts of devices with some kind of UI are using a browser in some kind of kiosk/headless mode.

STBs, Smart TVs, IFE systems are or were web based.

To be honest as time goes on the Smart piece of your device starts to get slower and slower.

One of the main drivers for getting a amazon fire stick is that it is much more responsive than the Smart TV itself.

I thought that but the Youtube app on both my smart tv and Apple TV are broken in exactly the same way and unusable without a regular reboot.
Previous versions of GMail had a good experience but was significantly faster than the current version of gmail. Loading basic HTML mode can get you a previous version of it.
Extreme statements aren't useful.

GMail is a poorly built app, that's all. There are plenty of great examples. Both Outlook and Fastmail have fast and feature-rich email clients. Gmail was good back in the day and got carried away by project managers and feature creep.

Meanwhile Google Docs continues to be a pinnacle of what you can achieve on the web.

My experience with the Outlook web app (not the "basic HTML" mode, which is perfectly usable in contrast) is the exact opposite --- it's extremely slow and consumes a ridiculous amount of memory for what it does (I've seen it take over 2GB of RAM, and this is with an account where all the emails with their attachments total less than 100MB.) When composing a message it lags so much that it will delay each keystroke by several seconds and drop keys intermittently, and I have resorted to writing in a real (native) text editor and copy-pasting. In contrast, the native client has memory usage in the dozens of MB and is far more responsive --- I've never experienced it being sluggish to that extent.
What I wish for every Christmas is that web developers across the globe finally learn that syncing a draft server-side onkeyup is the worst idea, and it should never be pursued in implementing it.

Reality has rtt and shitty 2G slow, and will drive people away from your web product if you are too silly to cache things locally.

Unused RAM is wasted RAM. If you don't have anything else that needs it then just let your system automatically handle it.

Also I find most performance issues with big apps are a result of browser extensions that interfere. Try using a private window without any extensions.

>Unused RAM is wasted RAM.

Says the OS developer, says the browser developer, says the webapp developer, says the developer of whatever else you have running. Developer time is expensive. Says one. Look it runs fine and is snappy. Says another on his maxed out development pc forgetting about his grandma. Why should i care about that extra memory load when most pc's nowadays have x amount. Says yet another.

And so the slugfest continues.

>Also I find most performance issues with big apps are a result of browser extensions that interfere. Try using a private window without any extensions.

Browser extensions can definitely make a browser sluggish but most don't interfere with the content. The only ones that do AND are common are adblockers which have a tendency of making it less sluggish.

Vacuuming up RAM while all the other applications have to fight over the leftover scraps or wait for paging to get the data from disk (1) is NOT a good thing as much as Electron-zealots want to normalize running a multi-GB browser instance for every single application.

(1): burning through an SSD's limited number of write cycles OR being at least an order of magnitude slower to access in the case of HDDs

Who says it was otherwise unused? Web apps aren't used in isolation, the additional RAM you're using to speed things up by 3% has caused my code look-ups to slow down by 30% because you've consumed what was my file cache.
> Unused RAM is wasted RAM.

Bloat RAM is also wasted RAM. If it's not being used as a cache of reasonable size, or in a time/speed tradeoff, all you're doing is making things worse.

> If you don't have anything else that needs it then just let your system automatically handle it.

That's a statement that only really applies to people misunderstanding RAM used by the page cache or suspended programs. And both of those depend on active applications not allocating that memory!

> I've seen it take over 2GB

Probably because that RAM wasn't doing anything else. Why not use it as cache to speed things up. I'm sure it can work fine in much smaller RAM sizes.

It's very rare that a program intelligently adjusts its cache size based on the amount of memory available.

And that doesn't explain how the "cache" is twenty times bigger than the source data.

I bet with less RAM available it would start thrashing.

The fact that my machine was swapping heavily whenever I tried to switch to the Outlook tab or do anything with it says otherwise.
Well, I'm all for SSR for most use cases, but Gmail is that way not because it's an SPA. For example, Fastmail lives up to its name and it's an SPA.
I want to emphasize that I was talking about the first beta releases of Gmail, which is where XHR was born. Or so I read.
> DON'T use any web technologies.

How do you think that would have worked for Gmail's success?

When did gmail become slow. It pretty fast for me. If speed is slow then yeah.