Smaller modules

Posted on 1999-06-30
Medium Priority
Last Modified: 2012-05-04
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
Question by:leeuwin
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Accepted Solution

wolfjjj earned 400 total points
ID: 1521233
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

Author Comment

ID: 1521234
That was quick

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question