It sounds to me like you are the one defining what a module is (I suppose if you mean a Python module then this whole post is moot - but if that were the case, you could get that straight from the source yourself). Based on what you define the module to be, it would then be up to you to isolate the module's code from the Pyramid source code.
Since we don't know what your module definitions will be, we aren't in position to help you find what code comprises the modules you desire. Glance over the source code might help you define modules. I'm sure the people here would be happy to help you isolate some code. Keep in mind, it would be rude if you came back with a list of questions without digging through the source code yourself (incidentally, you would be less likely to receive help). Here are some mental notes I've taken that should help you get started. I'm not a developer, though, so don't take anything I say as truth: 1) For repetitive tasks that will never change, Pyramid uses C coded functions. (I don't know if they use actual C code or a C-Python-Interpreter thing, such as PyPy). Regardless, this characteristic is what makes Pyramid faster than many other frameworks. I don't know for sure, but I'd suspect they'd use C for something like route look-ups. 2) Looking at the source tree, it looks as though each file is basically already split into a module (which is how code should be anyways I guess, haha). The following modules all seem like good candidates: - security.py (might be able to combine this with authentication.py and authorization.py) - traversal.py (if you're looking at route-generation/lookup speed, could also look at resource.py, *possibly* request.py and path.py (I have no idea what path.py does), router.py) - configuration.py (maybe you could benchmarks startup time, so this *might* include wsgi.py, or settings.py) - if you want to look at response time, then look at response.py and renderers.py or view.py 3) Some of the files are not pyramid specific, such as chameleon or mako_templating. However, these projects might be developed by some of the guys developing Pyramid, or these files might be tweaked to give performance boosts to processing requests (again, I have no idea) Hopefully I hit on something useful there. Good luck. -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/pylons-discuss. For more options, visit https://groups.google.com/d/optout.
