bloat

Do programmers care about software bloat?

I like to think about the users of my software and what is needed to satisfy their needs. I also like thinking about the best way to write code to provide the best performance while also having something reasonable to maintain later on. My users could care less about our ideals such as Pure Object Orientedness, Paradigms, Frameworks,...

What does it mean for an application to be bloated?

I myself have accused applications of being bloated, but is this really the problem with an application? Years ago I accused Microsoft of producing "bloated code" without myself actually seeing such code. Juvenile, I know. Now I feel that calling something "bloated" without specific constructive criticism is reduced to childish name c...

C++0x noise, bloat and portability

At first when I saw the upcoming C++0x standard I was delighted, and not that I'm pessimistic, but when thinking of it now I feel somewhat less hopeful. Mainly because of three reasons: a lot of boost bloat (which must cause hopeless compile times?), the syntax seems lengthy (not as Pythonic as I initially might have hoped), and I'm v...

Is it bad to use reflection to simplify constructors, comparisons, etc?

I hate having a bunch of "left/right" methods. Every time a property is added or removed, I have to fix up each method. And the code itself just looks ... wrong. public Foo(Foo other) { this.Bar = other.Bar; this.Baz = other.Baz; this.Lur = other.Lur; this.Qux = other.Qux; this.Xyzzy= other.Xyzzy; } Really this is ...

Why does my simple GTK+ based app take 8 seconds to start up?

Hi folks, I wrote a GTK+ app whose .exe is small, but of course like all GTK+ apps it links with many DLLs (under Windows). What my program does at this point is construct a GUI that consists of a GtkWindow, GtkTable, and about 12 others widgets. That's it. Yet when I start it up it takes about 8 seconds on my 2 GHz WinXP machine. Is ...

How to find "fat" procedure memory usage?

While working on my code lately, I've noticed that some of the memory usage is going up significantly, and I can't see many reasons for it in my code. So I'm wondering if there are any programs, techniques, or other types of tools that can scan my code (Delphi) and estimate for me what procedures, functions, and functions will be the he...

When does template instantiation bloat matter in practice?

It seems that in C++ and D, languages which are statically compiled and in which template metaprogramming is a popular technique, there is a decent amount of concern about template instantiation bloat. It seems to me like mostly a theoretical concern, except on very resource-constrained embedded systems. Outside of the embedded space,...

Interface bloat

Can someone explain to me what interface bloat is (preferably with an example). Sorry I meant interface bloat in OOP ...

Where does complexity bloat from?

Many of our design decisions are based on our gut feeling about how to avoid complexity and bloating. Some of our complexity-fears are true, we have plenty of painful experience on throwing away deprecated code. Other times we learn that some particular task isn't really that complex as we though it to be. We notice for example that upke...

When does code bloat start having a noticeable effect on performance?

I am looking to make a hefty shift towards templates in one of my OpenGL projects, mainly for fun and the learning experience. I plan on watching the size of the executable carefully as I do this, to see just how much of the notorious bloat happens. Currently, the size of my Release build is around 580 KB when I favor speed and 440 KB ...

Bloated PDF created by TCPDF

In a web app developed in PHP we are generating Quotations and Invoices (which are very simple and of single page) using TCPDF lib. The lib is working just great but it seems to generate very large PDF files. For example in our case it is generating PDF files as large as 4 MB (+/- a few KB). How to reduce this bloating of PDF files gen...

Resharper 5 - are speed & memory bloat issues solved?

I am on Resharper 4.x and VS2008. R# seems to slow down the living crap out of VS2008. And of course, the memory usage can easily go to 500MB on a middle of the road Winforms solution with 7-8 solutions. Now that Resharper 5.x is out, can anyone tell me whether either perf or memory issues have been improved for use with VS2008? ...

Does this code fill the CPU cache?

I have two ways to program the same functionality. Method 1: doTheWork(int action) { for(int i = 0 i < 1000000000; ++i) { doAction(action); } } Method 2: doTheWork(int action) { switch(action) { case 1: for(int i = 0 i < 1000000000; ++i) { doAction<1>(); } ...

Bloated echo command

Look at the following implementations of the "echo" command: http://www.openbsd.org/cgi-bin/cvsweb/src/bin/echo/echo.c?rev=1.7;content-type=text%2Fx-cvsweb-markup (OpenBSD) http://cvsweb.netbsd.org/bsdweb.cgi/src/bin/echo/echo.c?rev=1.18&amp;content-type=text/x-cvsweb-markup&amp;only_with_tag=MAIN (NetBSD) http://www.freebsd.org/cgi/cv...