access to compiled il code
Hello,
I posted this in the old forum, but didn't get any answer. So I try it again in the new forum.
First of all I want to say, that I am very expressed by the real great job you did with Fastscript. As far I can say, it is a great tool.
I have one wish, which could help me a lot to improve the performance of a very important part of my application.
If I could compile a script after designing it and save it to my database in compiled form (IL Code). Then when executing it I want to give the tfsscript the compiled code of the script. This would remarkably improve the execution of my scripts.
I made a test in my application. I stopped the compiling process and the execution process of the tfsscript. After running a lot of scripts I got 78 seconds for the compiling and 13 seconds for the execution. So if I could compile the script when saving it and use the compiled result, it would be a great improvement of the performance of my application.
Is there any way to get the IL Code after tfsscript.compile? If not, do you plan to make this possible?
It would be very usefull, and I think, it could not be that big problem for you, to enable this feature.
cu
Helmut
I posted this in the old forum, but didn't get any answer. So I try it again in the new forum.
First of all I want to say, that I am very expressed by the real great job you did with Fastscript. As far I can say, it is a great tool.
I have one wish, which could help me a lot to improve the performance of a very important part of my application.
If I could compile a script after designing it and save it to my database in compiled form (IL Code). Then when executing it I want to give the tfsscript the compiled code of the script. This would remarkably improve the execution of my scripts.
I made a test in my application. I stopped the compiling process and the execution process of the tfsscript. After running a lot of scripts I got 78 seconds for the compiling and 13 seconds for the execution. So if I could compile the script when saving it and use the compiled result, it would be a great improvement of the performance of my application.
Is there any way to get the IL Code after tfsscript.compile? If not, do you plan to make this possible?
It would be very usefull, and I think, it could not be that big problem for you, to enable this feature.
cu
Helmut
Comments
I compared the results of the scripts, once with compile and once with setilcode and found out, that the result of the script was different in several cases.
I had a look at the source to look for the difference between compile and setilcode. Then tried to fix it with adding the following line to setilcode method:
p.SelectLanguage(FSyntaxType);
it was added before the line:
p.ILScript.LoadFromStream(Stream);
After that change, everything worked as expected.
Could you confirm, that this change was o.k. and if so, than include it in the next release?
cu
Helmut