Hacker News new | past | comments | ask | show | jobs | submit login

The author claims that windows in different processes communicate slowly in Chrome.

My claim is that windows in different processes cannot communicate at all in Chrome. Only same-process windows can communicate -- and that refutes the author's claim that IPC slows down cross-window/frame communication in Chrome.




Hmm... interesting. I was honestly under the impression that all tabs (or windows) were separate processes. Are you saying that if you call window.open with a same domain that a new process is not started? (Sadly, I don't have chrome handy to test this right off.)


That's right -- Chrome uses the same process when there is a JS reference between the windows.

(In addition, Chrome will sometimes make windows/tabs share a process if there are a lot of tabs open, to save memory. There is a limit to the total number of render processes that Chrome will have.)


Cool, thanks. I am, not shockingly, curious how this works, now. Is it just a hinting mechanism, or can the rendering process of a tab/window change on the fly? What happens when you go to a new url in an opened tab? (I mean these more as things I'm now interested in. Maybe I'll get off my virtual butt and check the source. Granted, that source tree is less than casually approachable.)


Unfortunately, I don't know details that specific (I'm not familiar with the codebase either). Maybe ask on IRC? http://www.chromium.org/contact/-chromium-irc




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: