Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #95351 > unrolled thread
| Started by | "Joseph L. Casale" <jcasale@activenetwerx.com> |
|---|---|
| First post | 2015-08-13 16:56 +0000 |
| Last post | 2015-08-13 16:56 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
Module load times "Joseph L. Casale" <jcasale@activenetwerx.com> - 2015-08-13 16:56 +0000
| From | "Joseph L. Casale" <jcasale@activenetwerx.com> |
|---|---|
| Date | 2015-08-13 16:56 +0000 |
| Subject | Module load times |
| Message-ID | <mailman.172.1439485499.3627.python-list@python.org> |
I have an auto generated module that provides functions exported from a c dll. Its rather large and we are considering some dynamic code generation and caching, however before I embark on that I want to test import times. As the module is all auto generated through XSL, things like __all__ are not used, a consumer only imports one class which has methods for their use. It is the internal supporting classes which are large such as the ctype function prototypes and structures. My concern is simply reloading this in Python 3.3+ in a timeit loop is not accurate. What is the best way to do this? Thanks, jlc
Back to top | Article view | comp.lang.python
csiph-web