Re: code bloat [was Re: Semaphore assembly-code bug]

From: Tim Hockin (thockin_at_hockin.org)
Date: 10/31/04

  • Next message: janitor_at_sternwelten.at: "[patch 1/2] jbd: remove comment in journal.c"
    Date:	Sat, 30 Oct 2004 15:27:20 -0700
    To: Denis Vlasenko <vda@port.imtp.ilyichevsk.odessa.ua>
    
    

    On Sun, Oct 31, 2004 at 01:11:07AM +0300, Denis Vlasenko wrote:
    > I am not a code genius, but want to help.
    >
    > Hmm probably some bloat-detection tools would be helpful,
    > like "show me source_lines/object_size ratios of fonctions in
    > this ELF object file". Those with low ratio are suspects of
    > excessive inlining etc.

    The problem with apps of this sort is the multiple layers of abstraction.

    Xlib, GLib, GTK, GNOME, Pango, XML, etc.

    No one wants to duplicate effort (rightly so). Each of these libs tries
    to do EVERY POSSIBLE thing. They all end up bloated. Then you have to
    link them all in. You end up bloated. Then it is very easy to rely on
    those libs for EVERYTHING, rather thank actually thinking.

    So you end up with the mindset of, for example, "if it's text it's XML".
    You have to parse everything as XML, when simple parsers would be tons
    faster and simpler and smaller.

    Bloat is cause by feature creep at every layer, not just the app.

    Youck.
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: janitor_at_sternwelten.at: "[patch 1/2] jbd: remove comment in journal.c"

    Relevant Pages

    • Re: Why no XML in the Kernel?
      ... > Another fun consideration in that area is that XML (or s-exp, or trees, ... > includes the information about locks being held - without that you ... and home of the General Grant Home for Compulsive Arsonists).' ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6.11-rc1-mm1
      ... I see no XML in there. ... > The kernel is not the place to fix your postprocessing problems. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Newbie question: matching
      ... I don't remember the libs now, ... I watched a co-worker translate HTML into XML, ... > I am trying to write some python to parse html code. ...
      (comp.lang.python)
    • Re: file as a directory
      ... Plus shove all this garbage into the kernel?! ... Use a XML parsing library then. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: file as a directory
      ... On Wednesday 24 November 2004 16:02, Paolo Ciarrocchi wrote: ... > I don't undersand how you want to use Xpath for not XML file. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)