Re: Csscript good for server side ?

51 views
Skip to first unread message

Oleg Shilo

unread,
May 19, 2016, 7:35:54 PM5/19/16
to cs-s...@googlegroups.com
Hi Lucas,

Judging from your question performance is a primary concern for your project. And this is exactly when using CS-Script is the most beneficial. Despite the name CS-Script engine is not an interpreter but a compiler. It is the very same compiler that compiles your ordinary .NET applications. Thus a script when it is executed shows 100% the same performance as your fully compiled application. Thus if you are OK with having .NET assemblies in your server then you should be OK with having C# scripts too. 

I to put it simple with CS-Script executing C# script file is nothing else but an execution of .NET assembly (.dll) which happens to be compiled on fly from the *.cs file.

There can be some scenarios when loading the script can introduce some overhead but they are rare, can only be triggered by using specific flavors of hosted execution model (CSScriptLibrary.dll) and even then the overhead is minor and within expected range of dynamic code loading overhead. This is simply because CS-Script itself not only doesn't interpret code but even doesn't compile/eval it as it always relies for this on the official industry strength compiles .NET CodeDOM, Roslyn or Mono. Meaning that your compilation overhead is as good (or as bad) as it can be with .NET.

Regards,
Oleg Shilo

Oleg Shilo
--------------------------------------------------------------------------------------------
Website: http://www.csscript.net
E-Mail: csscript...@gmail.com

On Thu, May 19, 2016 at 9:23 PM, Lucas Benghida <youx...@gmail.com> wrote:
Hello ! I am not english so sorry ..
I want to make a modular server using csscript but i don't know if csscript can do the job (performances) so if you can help me ! :)

--
You received this message because you are subscribed to the Google Groups "CS-Script" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cs-script+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages