hi folks!

With only 3 lines, aiki libs are loaded by demands. It's works but need
test, because if you access a non existing property of $aiki (example
$aiki->my_yellow_submarine)
aiki try to load the class my_yellow_submarine.It works with extensions too.

Performance gains:
While render a page have been improved a bit, in other files improvement are
greater.
For example, in style.php this libs are not loaded:
view_parser  :1508 bytes
input  :2516 bytes
security :592 bytes
sql_markup  :980 bytes
text  :68 bytes
parser :3840 byte
aiki_array :2588 bytes
forms  :3052 byte
php  :6388 bytes**
records:3512 bytes

output :3256 bytes (this is the only lib loaded)
information is calculated using memory_get_peak_usage()

Limitations
- Some lib are loaded always (site, membership, url, plugins)
- We must declare all properties of $aiki.


Roger


PD: i need correct the docblock before the function __get.
_______________________________________________
Mailing list: https://launchpad.net/~aikiframework-devel
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~aikiframework-devel
More help   : https://help.launchpad.net/ListHelp

Reply via email to