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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Opinion wanted. is it better to wright an app as an imported module

Status
Not open for further replies.

IPGuru

Vendor
Jun 24, 2003
8,391
GB
I am relativly new to Python & so far i find it to be exelent language for the sort of programming i do "personal & fun" with lots of potential.

The reson behind my question is i have seen that modules are partialy compiled the first time they are imported, dose this result in any significant performace gain.

what i mean is should i write my app as one big script or create a simple wrapper app to call is as a module?

Code:
import myapp
myapp

where myapp.py is the full application.
 
That will probably depend on what the app's do. That is, some complex operations will be noticeably improved by compiling, others not so much.

_________________
Bob Rashkin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top