Click here to Skip to main content
Licence 
First Posted 13 May 2003
Views 29,485
Bookmarked 11 times

Code optimization implemented with RAD application

By | 13 May 2003 | Article
My idea...

Introdution

The essential question to develop software with RAD application( oriented objects) is usuallly, as known, by generating very "heavy" code:principal cause is, from my point of view, the creation of objects with countless variables and functions that in most software realization are used in minimum part. What is the difference betwen a code written by a programmer and an automatic code creation of a compiler? Well,the trial answer is that a programmer uses and creats intelligently only methods and variables that really occours.

On the other hand, the implementation of specific problems through generic classes is a "help" non only because it makes as right a shorter code for a determinated software solution but also it makes easier to idealise the solution forcing the vission of singolar problem as a sub-problem of a more extended class of solutions. this makes us take advantage in order to accelerate the implementation reducing the prodution cost.

For all of these reasons, I think that is important to invest for the improvement of RAD packages.

In this direction, the idea which about tell below, is an optimum way to solve the problem of "heavy" code.


My idea.


When a RAD compiler (oriented objects as for example "Borland c++ builder") creats the classes for graphic interfaces, for resourses management,..etc., allocates the memory area for countless variables and methods, much tens for each class that are hereditaged by child class.It allocates very other variables for generic subproblem until the leaf nodes(objects).

How many times my pc compiled more than 70000 lines just to make appear a window or less other things..!!

We suppose,for a moment, that we can add to a compiler riserved word essential as a class specificator.

When the compiler reads "essential class X", it must control that in the inner code of class X the label exist precede n>0 variables or methods to each one is associated a bit of mask boolean vector with size equals to n. This vector,then, is allocated in the memory near to object X. Checked the sintax, the compiler is able to allocate in the memory a specific essential class X that contains only the narrowly indispensable informations! Nont only. A essential class X can trasform itself into standard class through the label demask: "A demask X()" define a object without mask vector. The compiler must also check that the class X and those hereditaged by this don't recall methods o variables defined as false exist

Through this data structure, we will be able to creat objects with minimum size: it can image a compiler with a graphic panel where we select a "exist" variables and functions of class X!

It's only a idea...

by Cristian L.


For information cl.orion@tiscali.it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

ocean0



Italy Italy

Member

Mi chiamo Cristian Lorenzetto, abito a Terrazzo(VR,Italy) e sono uno studente di Ingegneria Informatica presso l' universita' di Padova. Mi interesso di soft computing e AI.
 
My name is Cristian Lorenzetto, I live in Terrazzo( VR, Italy) and I' studing Information Ingineering at Padova University. I' m interesting in Soft computing and AI.

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
Generalthe most useless article I've seen in CodeProject PinmemberZhefu Zhang4:25 15 May '03  
GeneralUnreadable PinmemberRichard Hein17:33 14 May '03  
GeneralRe: Unreadable PinmemberDaniel Turini2:47 15 May '03  
GeneralRe: Unreadable PinmemberPublicOcean07:27 25 Apr '06  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web03 | 2.5.120517.1 | Last Updated 14 May 2003
Article Copyright 2003 by ocean0
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid