• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 206
  • Last Modified:

Smaller modules

I have a large VB6 project with most of the code in 2 or 3 modules. For the sake of coding clarity is there any downside ie. exe size, speed etc, to having lots of much smaller modules with like functions grouped. The same goes for classes
1 Solution
You are likely to see an overall appearance of higher speed. When you call a function from a module the entire module is loaded. If you create several smaller modules with functions called by similar forms you can increase the initial speed of an application.

Once the modules have all been loaded it makes no difference. But if you have functions which are rarely called then it makes sense to have them somewhere else where they are loaded and taking up processor time and memory.

If you can group your functions by where they are called from then you can increase the initial speed of loading when your app is running

As for size of the application there may be a small increase in size but nothing noticable, probebly a couple of Kb.

The same deal goes for classes
leeuwinAuthor Commented:
That was quick

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now