I am currently learning for new Microsoft certification and this snippet from Azure Functions documentation caught my attention (link):
The Azure Functions Tools provides the following benefits:
- Edit, build, and run functions on your local development computer.
- Publish your Azure Functions project directly to Azure.
- Use WebJobs attributes to declare function bindings directly in the C# code instead of maintaining a separate function.json for binding definitions.
- Develop and deploy pre-compiled C# functions. Pre-complied functions provide a better cold-start performance than C# script-based functions.
- Code your functions in C# while having all of the benefits of Visual Studio development.
I understand cold-start performance refers to the fact csx files have to be compiled before they are used.
I begun to wonder if there is a cost (price-wise) of compiling csx and if it exists is it even meaningful? If it is done only once for given version of Function then it shouldn't be a noticable.