Angel Script Performance
Hi , I have measured some performance figures of Angel script on SuSE10 on 2 Core Intel Xeon .Following are the figures 100000 function calls with out parameters from AS to CPP takes 102 MilliSeconds 100000 function calls with string parameters from AS to AS takes 1027 Milli Seconds For example void anotherFunctionCall(string a,string b,string c,string d,string e) { } getTimer(); for(int i=0;i<100000;++i) { anotherFunctionCall("string1","string2","string3","string4","string5"); } getTime(); AS to AS function call with single string parameter for 100000 calls takes 231 if I pass by value.With handle I get 228. But function with premitive arg type takes 24 Milliseconds for 100000 calls. How can I improve the preformace of function calls within AS particularly for user defined types or strings ? Where can I get the BNF grammer for the language ? Regards, Vivek
User defined types are all allocated on the heap (so far). I believe most of the overhead comes from the memory allocations, so that is something you may look into if you want to boost the performance.
You can for example use memory pooling for frequently used types, such as strings.
There is also room for optimizations within AngelScript itself as I've spent very little time on that so far. If you have a profiler I'll gladly accept pointers as to where the bottlenecks within AngelScript are.
The as_parser.h file has an incomplete specification of the language in near BNF form. Unfortunately I didn't maintain this up to date with the latest additions.
Regards,
Andreas
You can for example use memory pooling for frequently used types, such as strings.
There is also room for optimizations within AngelScript itself as I've spent very little time on that so far. If you have a profiler I'll gladly accept pointers as to where the bottlenecks within AngelScript are.
The as_parser.h file has an incomplete specification of the language in near BNF form. Unfortunately I didn't maintain this up to date with the latest additions.
Regards,
Andreas
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement