logoalt Hacker News

halflifeyesterday at 9:44 PM6 repliesview on HN

Don’t know if it’s related to the article, but the chats ui performance becomes absolutely horrendous in long chats.

Typing the chat box is slow, rendering lags and sometimes gets stuck altogether.

I have a research chat that I have to think twice before messaging because the performance is so bad.

Running on iPhone 16 safari, and MacBook Pro m3 chrome.


Replies

DenisMyesterday at 10:32 PM

In the good old days Netflix had "Dynamic HTML" code that would take a DOM element which scrolled out of view port and move it to the position where it was about to be scrolled in from the other end. Hence he number of DOM elements stayed constant no matter how far you scroll and the only thing that grows is the Y coordinate.

They did it because a lot of devices running Netflix (TVs, DVD players, etc) were underpowered and Netflix was not keen on writing separate applications. They did, however, invest into a browser engine that would have HW acceleration not just for video playback but also for moving DOM elements. Basically, sprites.

The lost art of writing efficient code...

show 2 replies
bschwindHNtoday at 1:12 AM

Almost certainly running some sort of O(n^2) algorithm on the chat text every key press. Or maybe just insane hierarchies of HTML.

Either way, pretty wild that you can have billions of dollars at your disposal, your interface is almost purely text, and still manage to be a fuckup at displaying it without performance problems.

stacktraceyoyesterday at 9:48 PM

Same. It’s wild how bad it can get with just like a normal longer running conversation

qingcharlestoday at 1:26 AM

OpenAI sites are the only ones that do this to me. I have to keep a separate browser profile just for my OpenAI login with absolutely nothing installed on it or it'll end up being dogshit slow and unusable.

PunchyHamstertoday at 1:34 AM

That's how eating your own dogshit works, or whatever was that saying

moffkalastyesterday at 10:14 PM

Yeah just had this earlier today, I had to write my response in vscode and paste it in, there were literal seconds of lag for typing each character. Typical bloated React.

show 1 reply