I've implemented a codeunit which writes a file to disk.
This codeunit is run in the OnRun() method of the codeunit 20 times. When run like this it takes next to no time to run.
However, when I execute it using Webservices 20 times from C# Application then it takes around 5 seconds.
Any ideas where this overhead is coming from?