Re: Pseudo Code or Compiled
Posted in 1996
Topics: Performance & Tuning
}>>>>>>>>> Perry's response to Billy Wheeler <<<<<<<<<< As Billy says, it not only checks to see if the functions are present, it actually resolves the addresses of those functions at load time. FourGen has requested many times that Informix provide a post compile utility that will resolve those addresses once and for all and store them in the .4gi file, but Informix has chosen, for unknown reasons, not to do this. We feel like it would speed load time incredibly. And since the functions are all there in the .4gi, it shouldn't be that hard to write a utility like that. Then the runner needs a small mod that would fill the addr. table from the .4gi instead of scanning the whole file at load time. } From: "Billy Wheeler" <billy.wheeler@pixie.co.za> } To: informix-list@rmy.emory.edu (Informix List), villy@collinscomp.com } Date: Mon, 8 Apr 1996 20:14:30 +2 } Subject: Re: Pseudo Code or Compiled } } I agree wholeheartedly with Will's excellent summary. Obviously most } of my clients don't want to face the pain of buying 2 sets of } compilers & runtimes, so I generally advise people to stick to RDS } due to the availability of the debugger...makes _my_ life easier! :-) } } The reason for the slow load in RDS is that fglgo checks that all } necessary functions are present on load, whereas the C compiler } obviously does that at link time. I suspect that there would be a } much smaller differential if you compared loading monolithic } programs (i.e. programs with only a MAIN ... END MAIN, no FUNCTIONs). } } That's why FourGen programs take forever to load - hundreds of } function resolutions have to be done. } } Perhaps Jonathan Leffler or someone could tell us if there is any way } of switching off the function resolution on loading. Failing that, what say you } all about putting it in as a feature request? } } > As far as performance, compiled programs tend to load VERY quickly. The } > time between typing in 'prog.4ge' and getting a screen up is really } > snappy compared to 'fglgo prog.4gi'. Running a process and looking at } > the CPU time consumed, you'll find that compiled programs use about } > half as much time as p-code programs. } } } -- } } Cheers, } } Billy } } ----------------------------------------------------------- } e-ddress: billy.wheeler@pixie.co.za } Work: +27 11 803 2151 } Fax: +27 11 803 2189 } Cell: +27 83 250 2324 } GCM/CS d++(--) h--- s+:++ !g p?+ au++ a? w+ v++/* C+++ 3 k- } UCLAVH++++ p+++ L++ E-- N++ W--- M" V-- -po+ y+ t+ !5 j++ } R+ G? tv+ b+++ D+ B-- e+ u** h----(++) f+ r+++ !n z++++/** } ----------------------------------------------------------- } -perryd (Guru) ==================================================================== = Perry Dillard - Chief Architect Direct Dial: (206)517-6430 = = FourGen Software, Inc. FAX: (206)522-0054 = = FourGen Building Tech. Support: (800)444-3398 = = 115 NE 100th Street Sales: (800)333-4436 = = Seattle, W.A. 98125-8098 = = = = e-mail: perryd@fourgen.com Web Site http://www.fourgen.com = = = = Home Page: http://www.geocities.com/SiliconValley/3198 = ====================================================================