Hi Myles, Thank you for your reply.
Best Regards Leigh -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Myles Penlington Sent: Monday, May 26, 2003 10:03 AM To: Multiple recipients of list delphi Subject: RE: [DUG]: Pros and cons put function into unit Generally, every unit has hidden finialization and initialization code. So more units = more code. Why generally - One use of this code is to copy string constants out of the code segment into the heap, so that if a DLL gets unloaded, the string is still available. I haven't bother to check if there is other initialization code and its purpose if any. Compiled into the code is table of the entry points to each finialization and initialization section for every unit. So this takes up a wee bit of space. Myles -----Original Message----- From: Leigh Wanstead [mailto:[EMAIL PROTECTED] Sent: Monday, 26 May 2003 9:26 a.m. To: Multiple recipients of list delphi Subject: [DUG]: Pros and cons put function into unit Hello everyone, I read Delphi source code. It seems that Borland like to put lots of functions in one single unit, i.e. system.pas, SysUtils.pas. What is the benefit to put multiple functions in one unit? How about put one function one unit? Does that mean that Delphi linker has problem to handle multiple units? If use one function one unit, is that performance of the application will downgrade a little? I am just interested to know the performance of these two methods. I understand that some functions better to group together and we are in OOP generation anyway. TIA Leigh --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
