Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #11248

Re: Find dead (unused) code in a VO app

Path csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From "Wolfgang Riedmann" <wriedmann@gmail.com>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: Find dead (unused) code in a VO app
Date Thu, 21 Dec 2017 06:02:32 +0100
Lines 33
Message-ID <fa0tj9Fp99fU1@mid.individual.net> (permalink)
References <p1eb1s$jed$1@news.albasani.net>
Mime-Version 1.0
Content-Type text/plain; charset=iso-8859-1
X-Trace individual.net RRCH5RaIbj+YvBoHknP/uA9rCHcP88hVaAMME2/Fvn2auzAGQ=
Cancel-Lock sha1:Kej85lu3JDoJYScA/+4kxY534z8=
User-Agent XanaNews/1.18.1.6
Xref csiph.com comp.lang.clipper.visual-objects:11248

Show key headers only | View raw


Hi Jamal,

> Is there a tool to find dead code or unused (orphan) code in a VO app
> to remove the bloat and reduce app size?

this is very difficult and dangerous, but AFAIK there was such a tool
somewhere.

> For example, when deleting entities like a data window, some code
> like DEFINE statements are are left behind.  Sometimes there are
> functions that are never called in app.

to clean up the define statements, after larger modifications of a
window I delete all the generated code, open the binary entities and
rebuild the code.
I'm not using the DBServer editor or the SQL Editor so I don't have all
the myriads of access/assign methods and the FieldSpec entities - I
generate the fieldspecs on the flight from a dictionary of my database.

IMHO these are the real bloat in many VO applications.

And if you would like to save memory: build monolithic applications.
Using for example bBrowser as lib instead of a DLL saves a few 100 KB
in total executable size.

VO is linking in all classes and methods from a libraries, not only
these that are used.

Wolfgang


-- 

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Find dead (unused) code in a VO app "Jamal" <noooospam@example.com> - 2017-12-20 13:44 -0500
  Re: Find dead (unused) code in a VO app "Wolfgang Riedmann" <wriedmann@gmail.com> - 2017-12-21 06:02 +0100
    Re: Find dead (unused) code in a VO app "Jamal" <noooospam@example.com> - 2017-12-21 16:24 -0500
      Re: Find dead (unused) code in a VO app "Wolfgang Riedmann" <wriedmann@gmail.com> - 2017-12-22 07:32 +0100

csiph-web