News for hackers. Stuff that matters.
Re:AdBlock Plus’s effect on Firefox’s memory usage by neals on Wednesday May 14, 2014 @07:35AM (#7743143)
The first thing people complain about with browsers is probably memory usage. I doubt that many people actually understand what a browser actually does with that memory. I sure don't.

100mb sounds like a lot of memory for a webpage. Where does all this memory go to?

Re:AdBlock Plus’s effect on Firefox’s memory usage by nnethercote on Wednesday May 14, 2014 @08:18AM (#7743284)
Many people think of a browser as a tool for displaying text and pictures, with maybe a bit of JS code and some CSS effects on the side. That was true in the late 90s, but these days a browser is actually a fully-fledged programming environment that also happens to have some incredibly sophisticated multimedia capabilities: text, images, video, audio, animations, 3d graphics, etc.

The most popular websites run quite amazing amounts of code, and JavaScript execution is usually the dominant consumer of memory.

If you want a deeper understanding, visit about:memory in Firefox you'll get a detailed breakdown of how memory is used.

Re:AdBlock Plus’s effect on Firefox’s memory usage by nfoz on Wednesday May 14, 2014 @09:34AM (#7743589)
> That was true in the late 90s, but these days a browser is actually a fully-fledged programming environment that also happens to have some incredibly sophisticated multimedia capabilities: text, images, video, audio, animations, 3d graphics, etc.

Maybe I just miss the 90s, but I would much rather have the simple content browser than a "full-fledged programming environment", especially since all of that content is coming from the random untrusted intarwebs. Anyone want to write a browser engine that skips all the modern BS and just does a good job delivering mostly-static webpages?

Re:AdBlock Plus’s effect on Firefox’s memory usage by CJefferson on Wednesday May 14, 2014 @10:23AM (#7743889)
Such a webbrowser would be unable to render a large chunk of the internet, which doesn't sound overly useful.

I'm sure if you dug up a copy of an early netscape version it would be very fast on a modern machine, while failing to render most of the internet, if that's what you want.

Re:AdBlock Plus’s effect on Firefox’s memory usage by dredmorbius on Wednesday May 14, 2014 @08:41PM (#7747399)
Such a webbrowser would be unable to render a large chunk of the internet, which doesn't sound overly useful.

It wouldn't be able to render a large chunk of the Internet as designed, which, frankly, with 1106 local custom stylesheets applied to fix a huge range of crap and annoyances, sounds very useful and desirable.

Web design isn't the solution, Web design is the problem.

http://redd.it/256lxu

Re:AdBlock Plus’s effect on Firefox’s memory usage by astrobe_ on Wednesday May 14, 2014 @11:04AM (#7744145)
Your best bet is text-based browsers: Lynx, Elinks, or mayve Emacs/W3M. On simple sites like HN, they are more or less usable.

I also sometimes wish the Web were just serving data in an easily processable format, and let the user decide what and how they are presented. Of course this would definitely and completely defeat the ads-supported scheme on which sits Internet. An ads-free Web would probably require the resources (media files, services, storage space, bandwidth, etc.) to be massively distributed among the PCs of the end-user, who are already paying for bandwidth, processing power and storage anyway. But it would also be quite inefficient as it would require equally massive fault tolerance.

Re:AdBlock Plus’s effect on Firefox’s memory usage by DanBC on Wednesday May 14, 2014 @11:17AM (#7744210)
> I also sometimes wish the Web were just serving data in an easily processable format, and let the user decide what and how they are presented.

It's really sad that many people feel this is the state of the modern www. The original intention - you serve me stuff with suggestions about presentation, but my client software and OS and hardware can do what it likes with that stuff - appears to be long dead.

> Of course this would definitely and completely defeat the ads-supported scheme on which sits Internet. An ads-free Web would probably require the resources (media files, services, storage space, bandwidth, etc.) to be massively distributed among the PCs of the end-user, who are already paying for bandwidth, processing power and storage anyway. But it would also be quite inefficient as it would require equally massive fault tolerance.

I do not use ad blockers. I view ads. If I really like the site and trust their ad network I will click relevant links.

But I loathe the way some websites and apps work. Facebook on iOS opens all links in the facebook app. Apps and websites decide they will not let my zoom or rotate.

Especially hateful are the ads which take me out of a Chrome (iOS) session to open the app store. I contact owners of sites with those ads and politely tell them what happens, and then I cut and padte the URL to a list of sites that I will never ever visit again. This is as bad as the smiley ads that yell " HELLO!! ".

Advertisers seem reluctant to realise that irritating people like me ( ad tolerant) is a rwally bad move and is the reason so many peopke use ad blockers.

Re:AdBlock Plus’s effect on Firefox’s memory usage by test1235 on Wednesday May 14, 2014 @11:44AM (#7744357)
>Advertisers seem reluctant to realise that irritating people like me ( ad tolerant) is a rwally bad move and is the reason so many peopke use ad blockers.

You're a tiny, tiny percent of users who actively chooses to view ads. Not to be insulting, but advertisers don't care what you think - the money they lose from your custom isn't worth the effort to make the change.

I don't bother blocking ads and I've never felt the need to install anything.

But the day I come across a site which I deem annoying enough, you can bet I won't hesitate for a second, and that'll just blanket block everything. As long as the advertisers play nice, I don't particularly mind. I don't care to differentiate between 'good' and 'bad' advertisers - just like how I'm not worth their time, neither are they worth mine.

Re:AdBlock Plus’s effect on Firefox’s memory usage by GregBuchholz on Wednesday May 14, 2014 @11:30AM (#7744276)
Don't forget the Links browser, which started out text-only, and then added graphics:

http://links.twibright.com/

Re:AdBlock Plus’s effect on Firefox’s memory usage by warfangle on Wednesday May 14, 2014 @12:05PM (#7744471)
> I also sometimes wish the Web were just serving data in an easily processable format, and let the user decide what and how they are presented.

I think we tried that approach with RSS.

Re:AdBlock Plus’s effect on Firefox’s memory usage by nfoz on Wednesday May 14, 2014 @02:01PM (#7745132)
And RSS is great. What are you getting at?
Re:AdBlock Plus’s effect on Firefox’s memory usage by diegocg on Wednesday May 14, 2014 @10:57AM (#7744106)
The problem is not the browser. The problem is that modern web pages use a lot of functionality, use a lot of JS libraries and thus require that "full-fledged programming environment". A browser that does not implement it will just not be able to visit modern web pages. A page such as cnn.com weights 2M - and images are just 450 KB of it. Gmail and G+ are between 7 and 8 MB.

Modern web pages are programs and many are becoming bloated, and there is nothing magical a browser can do to avoid it.

Re:AdBlock Plus’s effect on Firefox’s memory usage by nirvdrum on Wednesday May 14, 2014 @12:18PM (#7744530)
The other half to this story is many web developers think the browser will magically clean up for them. I've lost track of how many sites I leave open in the background only to come back and find they're using > 1 GB RAM. I can always tell when it happens though because my laptop fan kicks on seemingly randomly.

With a bit of profiling it's usually that these sites just constantly append to the DOM. Without using circular buffers or otherwise cleaning up, eventually the CPU gets pegged doing constant GC. JS and Web development don't obviate the need for fundamentals and good programming practices.

Re:AdBlock Plus’s effect on Firefox’s memory usage by code_monk on Wednesday May 14, 2014 @09:49AM (#7743672)
NetSurf does a pretty good job. It does well at HTML and CSS on most sites and has only very basic JS support.

Another is Dillo, although it doesn't have as good of CSS last I tried (version 3 isn't horrible though).

Re:AdBlock Plus’s effect on Firefox’s memory usage by userbinator on Thursday May 15, 2014 @08:12AM (#7748959)
Anyone want to write a browser engine that skips all the modern BS and just does a good job delivering mostly-static webpages?

This is one thing I wish more people would try (as I am), and quite honestly don't think is as hard as the big browser vendors make it out to be; my view is that the complexity in mainstream browser engines appears mainly based on how they were designed and implemented, and not as a consequence of the web standards they need to implement. The massive numbers of abstraction layers certainly contribute, as is the notion that everything should be extremely flexible and extensible (Web standards don't change all that often, and when they do they tend to do so incrementally.) It would certainly be interesting to see the limits of how simple (in terms of lines of code, binary size, etc.) and/or fast you could make a web browser and still e.g. have it pass Acid2, which probably makes it quite usable for much of the non-webapp part of the Internet.

text, images, video, audio, animations, 3d graphics, etc.

One only has to look at demoscene productions to see that providing a rich multimedia experience doesn't necessarily require all that much in the way of computational resources, and that's partly a reason why I believe web browsers could be made vastly more efficient than the norm today.

Re:AdBlock Plus’s effect on Firefox’s memory usage by thristian on Wednesday May 14, 2014 @09:49AM (#7743669)
If you want Dillo and/or w3m, they're still available!
Re:AdBlock Plus’s effect on Firefox’s memory usage by chris_wot on Wednesday May 14, 2014 @10:12AM (#7743804)
Is Dillo still going strong?
Re:AdBlock Plus’s effect on Firefox’s memory usage by keithpeter on Wednesday May 14, 2014 @11:07AM (#7744161)
https://dl.dropboxusercontent.com/u/8403291/dillo.png

Xubuntu 14.04 has version 3.0.3 with docs dated April 2013

You won't be logging into dropbox with dillo alas!

Mighty fast for reading and cat pictures.

Re:AdBlock Plus’s effect on Firefox’s memory usage by dredmorbius on Wednesday May 14, 2014 @08:55PM (#7747433)
I see the problem being that there are essentially four different modalities to online content:

• Reading and discussion. Content-oriented sites. Overwhelmingly, here, Web design isn't the solution, Web design is the problem, and tools such as Readability, Instapaper, and Pocket are increasingly used to address this. Secondarily, content management is a problem, and my suspicion is that a new tool will emerge to displace the current browser model, either one of those mentioned or local clients such as Calibre or Zotero (a bibliographic management tool, though with some document display capabilities). Once content is rendered there's no real call to modify it dynamically. While console-mode / text browsers can be used here, I find they lack the management tools I seek. Discussion would entail some form of standard forum tool, a Usenet 2.0 type concept, ultimately, and would likely be integrated. Editing should support any full-featured local editor of the user's choosing.

• Application platforms. This is where full-featured browsers such as Chrome and Firefox appear headed. I believe they're headed for a rococo collapse -- that is, there's going to be such a degree of overembellishment of the browser that people will eventually abandon them for other, more appropriate tools, as those emerge. This has already happened numerous times in the browser space (Netscape -> Mozilla -> Firefox, MSIE -> anything else), and several times new browsers have emerged whose primary claims to fame were being lightweight and better reading experiences (Skipstone, Galeon, Firefox (initially), Chrome. Most eventually suffer from bloat.

• Commerce. This is currently handled in the browser, and is in fact a principle driver of much of the application functionality. Splitting this from other browsing activity would result in a smaller and saner platform, as well as isolation of financial transactions from other browsing, again, greatly reducing online risks. With a proper payment infrastructure, this should also greatly reduce the general security issues involved with online payments. Arguably this is already happening with the iTunes (Apple) and Play (Google) stores -- apps on mobile platforms.

• Multimedia content. Other than very brief previewing, it's almost always preferable to queue up multiple audio or video streams in an external player. My experience is that this niche is already reasonably well represented, in particular with tools such as VLC which support audio and video content, drag-and-drop queuing, playlists, playback controls, and the ability to correct for audio and video quality (levels, echo, brightness, contrast, etc.). Online players 1) are annoying in general, 2) don't allow for queuing content from multiple sites, 3) have inconsistent (and generally inadequate) controls, and 4) suffer from numerous playback, quality, and performance issues.

More: http://redd.it/256lxu

Re:AdBlock Plus’s effect on Firefox’s memory usage by arikrak on Wednesday May 14, 2014 @09:45AM (#7743646)
You can disable javascript or anything else in browsers, but you won't have a good experience on the web.
Re:AdBlock Plus’s effect on Firefox’s memory usage by gabriel34 on Wednesday May 14, 2014 @10:11AM (#7743794)
I tried disabling JS & cookies and whitelisting exceptions, but it was a pain. I ended up just using ghostery which is the opposite - blacklists exceptions, but with a 3rd party maintaining the list it became much better.
Re:AdBlock Plus’s effect on Firefox’s memory usage by ionforce on Wednesday May 14, 2014 @09:46AM (#7743652)
Define "modern BS".
Re:AdBlock Plus’s effect on Firefox’s memory usage by crististm on Wednesday May 14, 2014 @02:56PM (#7745502)
What about "tons of JS just for the sake of it"?

Ever since google maps, everyone started using JS like there is no tomorrow. And what came out of it? HTML is no longer enough. Firefox doesn't give option of disabling JS (1)

(1) about:config doesn't count

Re:AdBlock Plus’s effect on Firefox’s memory usage by vacri on Thursday May 15, 2014 @01:31AM (#7747995)
When I install firefox, I only have two plugins. Flashblock and NoScript. NoScript is actively maintained and lets you filter js with all sorts of options, defaulting to 'none at all'. Most sites work either perfectly or to some degree, though some fail to provide any content at all without js.

Given how trivial it is to install the plugin, I think that counts as firefox allowing disabling js.

Re:AdBlock Plus’s effect on Firefox’s memory usage by peterwwillis on Wednesday May 14, 2014 @10:22AM (#7743877)
> Anyone want to write a browser engine that skips all the modern BS and just does a good job delivering mostly-static webpages?

Over 10 years ago, someone did this with Mozilla Suite.

They called it "Phoenix". Some trademarking issues prompted them to rename it to "Firebird", but that name was also used by a popular database, so they finally renamed it again to "Firefox".

Those who cannot remember the past are condemned to repeat it.

Re:AdBlock Plus’s effect on Firefox’s memory usage by riquito on Wednesday May 14, 2014 @10:30AM (#7743939)
Firefox was never meant to deliver "mostly-static webpages" and "skip all the modern BS".
Re:AdBlock Plus’s effect on Firefox’s memory usage by peterwwillis on Wednesday May 14, 2014 @12:05PM (#7744466)
Okay. If you want to get technical, they ("Phoenix developers") stripped out all the unnecessary Mozilla Suite components, stripped out a ton of browser code, then added their own code. They wanted to be feature-compatible while removing bloat.

Technically it's harder to remain feature compatible if somebody ripped out the "modern BS" from the browser, because anything put into Firefox automatically becomes a de facto web standard. But they're by and large multimedia extensions which shouldn't be considered a necessary part of displaying hypertext.

I think if people want a programmable multimedia platform, that's fine, but they should build it separate from the world wide web so the rest of us can browse the New York Times without a 500MB web browser in resident memory, nor wait for the browser to stop the millions of operations it needs to reload the page due to all the ridiculous and unnecessary crap in the background.

Instead of forking the browser to strip out or redesign the unnecessary crap, i'm suggesting we take pruning shears to Firefox itself, lest we get yet another new tool that tries to replace yet another bloated, antiquated piece of crap.

Re:AdBlock Plus’s effect on Firefox’s memory usage by kalleboo on Wednesday May 14, 2014 @08:48PM (#7747413)
You don't need a new or changed browser to do any of that. Firefox still renders plain-text HTML that contains nothing more than <h1>, <p> and <a> just fine, blazing fast and I bet it doesn't need much RAM either.

But someone needs to create that content. And you're not getting it from the New York Times unless they can put flashy ads and interactive graphics that entices the majority of the users on the net (who actually enjoy the multimedia platform version of the web).

Re:AdBlock Plus’s effect on Firefox’s memory usage by hollerith on Wednesday May 14, 2014 @10:25PM (#7747614)
>Firefox still renders plain-text HTML that contains nothing more than <h1>, <p> and <a> just fine

Not as well as it used to!

Specifically, in the browsers of the 1990s you could "scroll while dragging": i.e., if you start dragging to select some text and you reach the bottom of the window, the window would scroll, allowing you to select more text than just what was on the screen when you started dragging. But at least in Firefox, that does not work anymore. (More precisely, you cannot scroll down although if you start dragging at the end of the selection, you can scroll up.) In other words, browsers have gotten so complicated that even an organization like Mozilla that spends millions of dollars a year on browser development cannot preserve all of the conveniences users used to enjoy for handling text.

My main response, though, is that the browser organizations (Mozilla, Google, MS and Apple) could have balanced the interests of content producers and content consumers instead of their giving content producers (and web-app developers, and marketers) almost everything they want like they have done. It's not as if the New York Times would have withdrawn from the web if the things they could do with code and with stylesheets were more limited.

Re:AdBlock Plus’s effect on Firefox’s memory usage by ben0x539 on Thursday May 15, 2014 @12:40AM (#7747873)
This works for me right now on firefox 29.
Re:AdBlock Plus’s effect on Firefox’s memory usage by clarry on Wednesday May 14, 2014 @09:56AM (#7743699)
> Many people think of a browser as a tool for displaying text and pictures, with maybe a bit of JS code and some CSS effects on the side. That was true in the late 90s [..]

It still is for many of us who complain about browser (and web content) bloat. We are on the web for text and pictures, primarily. The things we do online hasn't changed much since the 90s. Having sophisticated multimedia capabilities is irrelevant when we're in it for the content that matters.

Re:AdBlock Plus’s effect on Firefox’s memory usage by Crito on Wednesday May 14, 2014 @11:53AM (#7744414)
Exactly. What makes up the bulk of our internet browsing?

Pages like this: http://www.nytimes.com/projects/2012/snow-fall/ ?

Or pages like HN or wikipedia articles?

We seem to be trading resources for capabilities that we rarely leverage for any tangible benefit.

Re:AdBlock Plus’s effect on Firefox’s memory usage by GregBuchholz on Wednesday May 14, 2014 @07:44PM (#7747197)
The whole personal computing ecosystem as it stands today seems like a huge failure of imagination.

http://www.ultratechnology.com/scope.htm

Re:AdBlock Plus’s effect on Firefox’s memory usage by hollerith on Wednesday May 14, 2014 @09:44AM (#7743644)
>That was true in the late 90s, but these days a browser is actually a fully-fledged programming environment

Yes, I know, and I don't like it.

It makes it more complicated and unreliable to use the web to view text and images.

Re:AdBlock Plus’s effect on Firefox’s memory usage by bru on Wednesday May 14, 2014 @08:44AM (#7743379)
>and JavaScript execution is usually the dominant consumer of memory.

That's forgetting the DOM, which is often the actual cause for slowness & memory consumption, but gets far less spotlight than JavaScript. This is also a reason why a framework like react.js is so interesting: it circumvents the real DOM when computing (on a virtual DOM), and only applies the end result.

Re:AdBlock Plus’s effect on Firefox’s memory usage by nnethercote on Wednesday May 14, 2014 @09:07AM (#7743479)
In my experience, JS memory usage is nearly always much higher than DOM. For example, my current Firefox session has 16 tabs open and ABP enabled. JS memory usage is over 600 MiB, whereas DOM memory usage is only 120 MiB.
Re:AdBlock Plus’s effect on Firefox’s memory usage by VLM on Wednesday May 14, 2014 @08:15AM (#7743273)
"The first thing people complain about with browsers is ..."

They changed the browser UI, either the browser devs or the site devs via stupid javascript tricks (messing with scrolling, etc). I got driveby download powned and my CC info stolen and five spam toolbars in the UI I can't get rid of. There are too many spammy ads. They make is as hard as humanly possible to use bookmarks to encourage the use of a search engine every single time you go to a site thus monetizing ad views. Typosquatters. "Journalism" sites with one line of the article per page of spam. Spam "answer" websites.

Memory is way, way down the list.

Re:AdBlock Plus’s effect on Firefox’s memory usage by mschuster91 on Wednesday May 14, 2014 @08:42AM (#7743374)
> They make is as hard as humanly possible to use bookmarks

Chrome has a "star" button right in the address bar, FF and IE have Ctrl+B to create a bookmark.

And both Chrome and FF have a pretty good auto-complete in the address bar (I just have to type "ne" to get Hacker News, "ma" for google mail, "youp" and "yout" for video streams, etc pp).

People vastly underestimate the power of keyboard shortcuts. I work as a freelance consultant/support guy and everyone is surprised how fast I work with even the slowest computers. Most can't believe how much time one can save by knowing at least Ctrl+C/Ctrl+V, Alt-Tab and Ctrl-Tab.

Re:AdBlock Plus’s effect on Firefox’s memory usage by GilbertErik on Wednesday May 14, 2014 @08:50AM (#7743401)
I use mostly the same functionality that you describe here, with the exception of "youp". What does that autocomplete to... Ohhhh, I see what ya did there.

Two words for you: Incognito Mode

Re:AdBlock Plus’s effect on Firefox’s memory usage by Curmudgel on Wednesday May 14, 2014 @09:17AM (#7743522)
> Chrome has a "star" button right in the address bar, FF and IE have Ctrl+B to create a bookmark.

The Classic Theme Restorer add-on for FF allows you restore the star button to the address bar. On FF, Ctrl-D bookmarks the current page, while Ctrl-B opens a list of bookmarks.

Re:AdBlock Plus’s effect on Firefox’s memory usage by icebraining on Wednesday May 14, 2014 @09:30AM (#7743571)
I don't get it; I'm on FF 29 without that addon, and I have a star button on the bar (not in the address text input, but on the same bar). What's the point of the addon?
Re:AdBlock Plus’s effect on Firefox’s memory usage by 01Michael10 on Wednesday May 14, 2014 @09:51AM (#7743676)
The point is the star button is not in a convenient location in FF 29... I find have to search for the star button now when need to bookmark something. I guess it made to much sense to have right in the address bar so they moved it... The Classic Theme Restorer may be in my near future.

UPDATE: I used the Customize feature to move the star button just to the right of the address bar and that is good enough for me.

Re:AdBlock Plus’s effect on Firefox’s memory usage by sphink on Wednesday May 14, 2014 @04:23PM (#7746149)
What's the use of an uncategorized bookmark? I always drag the url into a bookmark folder in the toolbar (which I always have open; apparently come people hate that.) For uncategorized stuff, well, I guess that's why I have 300+ tabs open right now...

And Tree Style Tabs. Cannot live anymore without TST. That really ought to be in the core. Especially since it's sometimes a little buggy, though that may be because FF is changing underneath it.

Oddly, I'm on Nightly, and the star button is to the right of my url bar. I don't remember moving it back there, and I don't know why I would, since I never use it.

Ok, it's gone now.

Re:AdBlock Plus’s effect on Firefox’s memory usage by Nursie on Wednesday May 14, 2014 @08:29AM (#7743315)
Definitely. In a browser-on-pc setting, who even cares about memory any more? We have loads of it.
Re:AdBlock Plus’s effect on Firefox’s memory usage by pdpi on Wednesday May 14, 2014 @10:51AM (#7744072)
Tons of people. There's all the people using old computers, because they're still plenty good (except when using applications written by people who think they don't have to worry about memory), and all the people on shoestring budgets using cheap computers that are for the most part good enough (except when using applications written by people who think they don't have to worry about memory).
Re:AdBlock Plus’s effect on Firefox’s memory usage by sentenza on Wednesday May 14, 2014 @01:59PM (#7745119)
Also, people who let their machine and browser rund 24/7. I'm currently stuck with an 8GB machine because I hit the maximum RAM supported by the mainboard and I don't have the time to go through a full productive machine migration right now.

So I restart my browser every 48 to 72 hours to reduce the memory footprint (which is one of those clunky "hacks", but it still works).

Re:AdBlock Plus’s effect on Firefox’s memory usage by clarry on Wednesday May 14, 2014 @10:01AM (#7743726)
If you think everyone or even most people out there want to upgrade their computers every couple years, and go for models with lots of RAM in them.. I'm sorry, you're wrong. Some geeks might have 16G or 32G but that's it.

Besides, whatever happened to Web browsing being a lightweight activity accessible for everyone even on his grandma's old PC?

Re:AdBlock Plus’s effect on Firefox’s memory usage by Nursie on Wednesday May 14, 2014 @11:53AM (#7744411)
Even a chromebook has multiple GB of RAM now. Yes, a lightweight browser on old machines is desirable, but everything has had more than enough RAM for an extra 100MB for ABP for multiple years.
Re:AdBlock Plus’s effect on Firefox’s memory usage by Crito on Wednesday May 14, 2014 @11:59AM (#7744434)
The Chromebook Pixel I'm sitting behind right now has 4GB. I find it frequently insufficient for Chromes needs. I bought it a year ago; the websites that I use give me the same sort of content that they did a year ago.
Re:AdBlock Plus’s effect on Firefox’s memory usage by nnethercote on Wednesday May 14, 2014 @08:31AM (#7743327)
And who would want to use a browser anywhere other than a PC, right?
Re:AdBlock Plus’s effect on Firefox’s memory usage by Nursie on Wednesday May 14, 2014 @08:33AM (#7743334)
We appear to be talking about ABP on desktop firefox, no?
Re:AdBlock Plus’s effect on Firefox’s memory usage by nnethercote on Wednesday May 14, 2014 @09:04AM (#7743466)
It's true; my comment wasn't fair.

Returning to your original point: I've been working on Firefox's memory consumption for about three years now. There are quite a few people who take your viewpoint. But there are also plenty of people who care very deeply about memory usage. Some of this makes sense, e.g. from people who are on low-end machines. But some of it is less rational... there is a subset of people for which memory consumption is almost a moral issue, and excessive usage indicates the general decay of western civilization, or something like that.

Re:AdBlock Plus’s effect on Firefox’s memory usage by gcp on Wednesday May 14, 2014 @09:10AM (#7743496)
The problem surely applies just as well to ABP on mobile Firefox?
Re:AdBlock Plus’s effect on Firefox’s memory usage by __david__ on Wednesday May 14, 2014 @03:17PM (#7745684)
> In a browser-on-pc setting, who even cares about memory any more?

I do. I have 16GB of RAM (the max for my computer) and have 3GB of swap used. About 8GB of that is Firefox, and I (obviously) run more than just a browser on my computer.

Re:AdBlock Plus’s effect on Firefox’s memory usage by nextw33k on Wednesday May 14, 2014 @08:18AM (#7743287)
I once read an explanation of memory usage.

It boils down to images, if you think about it a PNG file is small but when you decompress that to a native bitmap for rendering to a screen, you've suddenly consumed a lot of space. A lot of applications render using the CPU and pass the data to the GPU to display.

Now look at a typical page with images, flash (with images inside) all of the scroll and developers that don't optimise their images and then 100MB of data for a single page isn't really a lot.

Plus memory usage is the wrong metric, I don't really care how much RAM my applications use, I care about how responsive they are. Firefox can use all my RAM if I get great page load times and my other applications don't suffer.

Re:AdBlock Plus’s effect on Firefox’s memory usage by Omniusaspirer on Wednesday May 14, 2014 @09:08AM (#7743484)
It's pretty rare that I want an application to use less ram these days, if anything I wish more programs would take full advantage of it.
Re:AdBlock Plus’s effect on Firefox’s memory usage by userbinator on Wednesday May 14, 2014 @09:22AM (#7743538)
Firefox can use all my RAM if I get great page load times and my other applications don't suffer.

if anything I wish more programs would take full advantage of it.

If every single application behaved like it owned all the memory on your machine, you would have a pretty horrible experience as they'll be basically fighting over what's available and likely hitting the swapfile. On the contrary, I do wish developers would care more about the memory footprint of their applications since they are sharing with all the others. Looking at it this way, optimising performance by using more memory aggressively (and thus reducing the amount of memory other applications can use) seems like a horribly greedy and antisocial way to behave, and thus it makes sense to use as little as feasible to give good performance.

(I'm assuming that the use case here is a browser that you have open along with other applications; if you only have a browser running, then it doesn't matter as much.)

Re:AdBlock Plus’s effect on Firefox’s memory usage by iopq on Wednesday May 14, 2014 @10:33AM (#7743961)
I have 16 gigs of RAM. I'd love to see every program use as much RAM usefully as possible. I don't want programs to write temp files to the drive. I want things to be done in RAM as much as possible to avoid wearing out the SSD.

In fact, every application DOES behave like it owns all of the RAM on the machine. This is what virtual address space does, it's pretending that each program has access to any place in the memory.

Re:AdBlock Plus’s effect on Firefox’s memory usage by clarry on Wednesday May 14, 2014 @11:21AM (#7744233)
I have 1 gig of RAM. I'd love to see every program not waste tens or hundreds of megabytes not doing anything useful with it. I don't want programs to cause heavy swapping and slowdowns, I don't want them to crash because they ran out of memory. I want things to be done reasonably efficiently to allow me to do more with the amazing computing power I did not have fifteen years ago, with a better UX.

Sadly, a lot of current software does behave like it owns all of the RAM on the machine. But modern browsers are particularly bad, and it doesn't help that you need the web for so many things today. With browsers I'm not given much choice.

> This is what virtual address space does, it's pretending that each program has access to any place in the memory.

No, not at all. It's just handing control over to the operating system so paging can be handled transparently and programs can't overwrite each others' memory. Programs still have to acknowledge and respect the fact that memory is a finite resource, and they can't have all of it. That's how it has always been, a virtual address space doesn't change the fact.

Re:AdBlock Plus’s effect on Firefox’s memory usage by nnethercote on Wednesday May 14, 2014 @04:36PM (#7746243)
This discussion sums up one of the great challenges for browser vendors -- satisfying users with wildly different hardware.
Re:AdBlock Plus’s effect on Firefox’s memory usage by kalleboo on Wednesday May 14, 2014 @08:58PM (#7747437)
> I have 1 gig of RAM.

Why do you torture yourself like that when another 4 GB costs $15?

Re:AdBlock Plus’s effect on Firefox’s memory usage by eropple on Wednesday May 14, 2014 @11:20PM (#7747709)
You assume his computer is new enough to support more than 1GB.
Re:AdBlock Plus’s effect on Firefox’s memory usage by vacri on Thursday May 15, 2014 @01:34AM (#7748002)
If the computer is that old, then the user is an outlier and not the target audience for the modern major browsers. Better off finding a niche browser.
Re:AdBlock Plus’s effect on Firefox’s memory usage by clarry on Thursday May 15, 2014 @08:27AM (#7749010)
Actually my computer is only four years old, and supports up to 2GB of RAM.

It is hard to find a working niche browser when Mozilla and Google are doing everything to make sure the web depends on their behemoths' complexity. They are pushing for the Web Platform. They are constantly adding new features.

I used to use Links 2 as my primary browser until about a year or two ago. I would have preferred to keep using it (actually I still do, but it's no longer primary), but one day, a few years ago, Google said let's kill IE6. I can't remember the date. But I know web devs had a party and since that day, the amount of Javascript on the web has skyrocketed, and it's gone from an optional "experience enhancer" to a requirement in many cases. So I'm not given much choice.

But this isn't just about me personally; I could buy a new computer today if I wanted to. What people have pointed out elsewhere in the comments is true -- there are people who still have old computers, much older than mine. And people (parents too) who cannot afford much else besides aging second hand machines.

Re:AdBlock Plus’s effect on Firefox’s memory usage by userbinator on Thursday May 15, 2014 @09:42AM (#7749326)
What irks me the most about this whole "web must move forward" mentality is that machines that would otherwise be perfectly usable for the sorts of basic tasks one used to be able to do even without these new web technologies (i.e. read email, news, etc.) are being obsoleted and scrapped by people buying newer, much faster hardware --- only to be used just for those same basic tasks again.
Re:AdBlock Plus’s effect on Firefox’s memory usage by Omniusaspirer on Thursday May 15, 2014 @02:15PM (#7751191)
Is that really a bad thing though? These old PC's are extremely wasteful with electricity relative to newer ones, so how much money are people really saving? People are so quick to ignore the ongoing costs and obsess over the immediate.

Basic web browsing/word processing is incredibly cheap to do right now in a new PC (sub $200 sans peripherals for the absolute newest hardware). In my opinion, these are machines that will handle web tasks for at least the next 10 years barring some huge shift that I cannot foresee.

Re:AdBlock Plus’s effect on Firefox’s memory usage by twistedpair on Wednesday May 14, 2014 @08:23AM (#7743305)
This the is most cogent breakdown of what really happens in a browser. http://www.html5rocks.com/en/tutorials/internals/howbrowsers...
Re:AdBlock Plus’s effect on Firefox’s memory usage by insky on Wednesday May 14, 2014 @07:51AM (#7743198)
Great question. Does that encompass the assets on the page? The recent cache, lookahead?

I'm always staggered on the flip side that serving a web page using something like XYZ CMS can use a staggering 50MB or more for one page load without caching.

Bizarre when you consider that you could get a small encyclopedias worth of text on a floppy disk.

Too many websites are drowning polar bears...