News for hackers. Stuff that matters.
Re:New Chrome features to save battery and make browsing smo... by ipsum2 on Saturday December 10, 2022 @07:02AM (#33931851)
> Any inactive tabs will be reloaded when you need them.

Anyone have ideas why the tab's memory contents can't be offloaded to SSD and restored instead? Personally I don't like losing state (e.g. filled in forms, scroll position, deleted posts, etc) from using other extensions like Great Suspender.

Re:New Chrome features to save battery and make browsing smo... by johnchristopher on Saturday December 10, 2022 @07:04AM (#33931864)
Just a guess but probably something to do with running states in the background but connected to external thingies, hard to offload and restore as-is if the external thingies (or the local one) detect timeouts. Easier to just reload the URL than bother to restore an unusable webpage's state I suppose.
Re:New Chrome features to save battery and make browsing smo... by masklinn on Saturday December 10, 2022 @07:09AM (#33931891)
OTOH this is already an issue with you sleep / suspend the machine itself
Re:New Chrome features to save battery and make browsing smo... by yetanother-1 on Saturday December 10, 2022 @07:10AM (#33931897)
Don't forget that reloading through the networks gives Google the ability to keep tracking. The requests will go only to that URL, but Google will get it one way or another...
Re:New Chrome features to save battery and make browsing smo... by jonatanheyman on Saturday December 10, 2022 @07:19AM (#33931965)
Why would Google need a reload to keep tracking (they already control the browser)? That this feature/implementation was driven by desire for more tracking sounds far fetched to me.
Re:New Chrome features to save battery and make browsing smo... by codedokode on Saturday December 10, 2022 @07:26AM (#33932005)
I think it is possible. Typical web process memory size is about 30-500 Mb. Writing 500 Mb sequentially on a spinning HDD takes 5 to 10 seconds, and probably you can discard a lot before saving (like JIT code, JS bytecode, CSS dependency trees, HTTP caches, localstorage etc.), and 500 Mb pages are rare.

For comparison, if you don't unload the page completely, and system gets into swapping then there will be random access pattern with speed about 400 Kb/s on a HDD. So it is faster to unload 500 Mb sequentially than swap out/in 5 Mb.

Re:New Chrome features to save battery and make browsing smo... by Tostino on Saturday December 10, 2022 @07:33AM (#33932049)
This is why getting away from optimizing all our software around the disk being the major bottleneck will be a great thing for computing. So many optimizations become possible when your storage isn't in the hot path.
Re:New Chrome features to save battery and make browsing smo... by andai on Saturday December 10, 2022 @07:34AM (#33932061)
Are you really using a spinny disk? Most SSDs can do 500mb in a second or two.
Re:New Chrome features to save battery and make browsing smo... by eric__cartman on Saturday December 10, 2022 @09:38AM (#33932976)
If you're developing a widely used web browser you have to take into account the people booting from a hard drive made in 2009.
Re:New Chrome features to save battery and make browsing smo... by codedokode on Saturday December 10, 2022 @08:02AM (#33932254)
I considered the worst case, obviously with SSD you can unload pages even faster if you are fine with reducing its lifetime.
Re:New Chrome features to save battery and make browsing smo... by masklinn on Saturday December 10, 2022 @07:09AM (#33931886)
1. it's a ton of data

2. it's very messy data, it's a bunch of seas of nodes (the DOM, the JS heap, the styling info, etc...)

3. I wouldn't be surprised if it was data which isn't fully isolated (e.g. shared style caches), meaning it first has to be fully forked to resolve into a self-contained bundle

OS have the ability to just freeze and store / restore memory, but I'm not sure they give that capability to use processes.

Re:New Chrome features to save battery and make browsing smo... by andai on Saturday December 10, 2022 @07:35AM (#33932065)
If I'm not mistaken, the original Word document file format was a RAM dump.
Re:New Chrome features to save battery and make browsing smo... by masklinn on Saturday December 10, 2022 @08:07AM (#33932288)
Sure, so were save files for many older games, but it was a dump of the document / game state, which was a fraction of the running program, and probably designed for that in mind in the first place.

Image-based systems (smalltalk, self) would probably be a better model for a live tab, but it still requires things to line up.

Re:New Chrome features to save battery and make browsing smo... by KyeRussell on Saturday December 10, 2022 @07:20AM (#33931972)
As a web app developer? I’ve seen all sorts of ridiculous behaviour that I can’t explain for reasons other than weird wake-from-sleep implementations. I assume that any tab suspension implementations will follow the same patterns.