| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Memory matters |
On: 17 Oct 03 12:58:32 Bo Simonsen wrote to Pascal Schmidt: > Unfortionally I'm talking of a huge structure which look like this, > ----- cfg.h begins ----- That is moderate in size compared to some of the programs I have worked on... it's definitely not huge, IMO. If you structure your program well it should be possible to deallocate these pointers in a very elegant way. Obviously that doesn't mean lining them all up and freeing one after the other at the end of main. Every program has a natural flow of creation and destruction. It's up to the programmer to handle that flow tastefully. > I could limit some of chars hardcoding a value.. But anyway it would be waste of memory.. I disagree. If you follow the fidonet technical specification the wasted memory would be very minimal. Those bytes would have been important in the days of 640k DOS memory. On a modern Linux or Windows system the little bit of unused padding is inconsequential. -Roger --- Spinone v0.1.79 Win32* Origin: Scudder's Point (1:261/38.11) SEEN-BY: 633/267 270 @PATH: 261/38 123/500 106/2000 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.