One of the things I've been working on with BizTalk is trying to understand the best way to accomplish things like logging. In my journey to understand this I came accross something that I think is rather interesting.
What is the difference in the number of lines of code executed between the following two expression shapes?
Shape1:
Variable_1 = 1;
Shape2:
Variable_1 = 1; Variable_1 = 2;
Any ideas? I can tell you that the answer is not one. Based on my spelunking the answer is somewhere closer to 20. I think it is hard to qualify a "line of code" and it is hard to measure external calls, but in my research I was at well over 20 lines of code. Basically BizTalk saves its state and updates its status for each line of code in an expression shape. This makes for a case to use some custom code that BizTalk calls since the overhead per line of code is pretty high.