jducoeur: (Default)
[personal profile] jducoeur
[Side-note: I haven't been posting much. Sorry: work's been eating my brain, and I don't want to bore people with a complete excess of CommYou stuff.]

Facebook's latest feature is built-in chat: when you're in FB, there is simply chat *there*. It's not something you turn on -- it just sits at the bottom of your window. And you Can't Turn It Off. (Far as I can tell.)

Which wouldn't be so bad, except that it's taking up about 60% of my CPU, far as I can tell. I was initially worried that something in CommYou was running out of control, but no -- it's just as bad on the Facebook homepage. And since Chat is their new feature, I rather suspect it's the culprit.

Moral of the story: features that the user can't turn off are *bad*; cute features that they can't turn off are worse. A lesson for me to remember in CommYou...

Huh

Date: 2008-05-08 01:25 pm (UTC)
From: [identity profile] metageek.livejournal.com
I've still got 3 Facebook tabs open from 2 days ago, and Firefox's CPU usage is minimal (1-2%). Maybe their chat stuff just doesn't work on Firefox for Linux?

Re: Huh

Date: 2008-05-08 03:56 pm (UTC)
laurion: (Default)
From: [personal profile] laurion
No problem here. Nor on the Mac.

Re: Huh

Date: 2008-05-08 04:24 pm (UTC)
ext_104661: (Default)
From: [identity profile] alexx-kay.livejournal.com
Wacky hypothesis: Something about Jducouer's machine environment flags it to the chat code as "this is a development machine, so I should run in debug mode".

Re: Huh

Date: 2008-05-09 01:05 pm (UTC)
From: [identity profile] metageek.livejournal.com
Curious -- this isn't Linux, it's Windows.

Right. I meant that maybe the reason I wasn't seeing it eat CPU was that it just wasn't working for me.

I haven't restarted the browser in a good while (most of a week).

That could be it, then. If it's FF2, that could definitely be it; I try to keep mine open indefinitely, but I always have to restart sooner or later, what with memory leaks and all. (3.0 is supposed to have fixed most of those.)

Actually, memory leaks could explain the CPU usage: garbage collection can be extremely CPU-intensive in pathological cases—e.g., when JavaScript is repeatedly polling the chat server, constructing and discarding objects representing the connections.

Re: Huh

Date: 2008-05-09 02:28 pm (UTC)
From: [identity profile] metageek.livejournal.com
Now I'm wondering what their protocol is, and what I can learn from it.

If it's in JavaScript, the source is sitting in your cache.

You could deliver something in Flash or Java that maintains a persistent connection, so that you can push stuff down to the client. 'Course, that means a lot of connections on your end, which gets expensive.

Profile

jducoeur: (Default)
jducoeur

June 2025

S M T W T F S
12 34567
891011121314
15161718192021
22232425262728
2930     

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags