Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Api location 1

Status
Not open for further replies.

cainemart

Programmer
Nov 28, 2001
70
US
If I have an api that is used by a few different forms, should I put it in a global module or in each form. Will it run faster if placed in each form because because it won't have to access the global module is what I trying to ask I guess.

Thanks

cm
 
Make the api global. Placing it in each form does not cause it to run faster but definitely causes it to be a maintenance issue. -------------------------------------
scking@arinc.com
Try to resolve problems independently
Then seek help among peers or experts
But TEST recommended solutions
-------------------------------------
 
Ok I just didn't know if it would take longer because the global module would have to load. Thanks for your reply.

CM
 
Loading a global module with a few references would probably take a fraction of a millisecond. If you have performance specifications that are that rigid you would need to to benchmarks against every function you use. Just using an inefficient function or method would make a bigger difference. Most generally databases will not have performance requirements. -------------------------------------
scking@arinc.com
Try to resolve problems independently
Then seek help among peers or experts
But TEST recommended solutions
-------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top