M2 Download Center
Download Here ( Internal )
Intro
This release will explain how to "convert" your root .py files to .c ones.
Actually, Cython only converts those files to pure CPython code.
Download
Main Branch
VS Impl Branch (highly suggested)
As requested by many people, you can download the compatible and clean official cn root dated 20131228-0034 without further edits:
rootCn_20131228-0034_edit.rar
uiscriptCn_20131228-0034.rar
cN-serverinfo-edit.py
Is Cython really worth it?
Pros
All the modules are compiled, and they can't be "extracted as .py" anymore.
We can always disassemble the launcher with IDA, but the result will be pseudo-c code after waiting 6-8h of analyzing.
Since we're not using .pyx files but directly .py ones, there's no "so much optimization".
At least, 10% of performance increasing is guaranteed.
Cons
For testing purposes, it's heavy to maintain. Everytime you try to re-compile your root files, you should wait 5-10 minutes.
You can always use the uncythonized root (.py files) when you perform tests, and compile cython whenever you will make an update in your live server.
The launcher's size will increase ~10mb. You can actually pack it to save space.
If you directly use a .pyd (still 10mb), the launcher's size won't increase.
VideoTutorial
Credits
Me (lollo_9_1/martysama0134)
Night (OST suggestion)
Random Testers
What's New:
vsimpl
Visual studio implementation
automatic cythonization when compiling
only the edited files will be compiled
v2.0
The module's name check is now case-insensitive (colorInfo == colorinfo)
Added a new function rootlib/uiscriptlib.getList() to retrieve a tuple of all the available cythonized modules.
Now you can compile a uiscriptlib library from the uiscript*.py files! (implemented as __USE_EXTRA_CYTHON__)
Added a sample ui.py containing the code to run uiscriptlib.