umegaya/pulpo — pull request #16 by umegaya (2014-10-22 02:43:08+00:00)
Title: Umegaya/feature/lazy require

pulpo's initialization is really complex. one reason is, to archive faster cdef compilation with multi-thread environment, some module can be required only after thread module initialization finished.

so, sometimes requiring module on the top of each source code is impossible because in that timing, thread modules are not initialized.

then some modules are required on the fly (e.g. inside another function), that makes pulpo initialization process hard to read.

so I implement new package system for pulpo that enables first only returns module's table itself, after lazy loader *adds* actual API to that table.