Microsoft KB Archive/287538

= BizTalk Interchange.Submit is Slower when Processing a Document from Memory =

Article ID: 287538

Article Last Modified on 10/10/2003

-

APPLIES TO


 * Microsoft BizTalk Server 2000 Standard Edition

-



This article was previously published under Q287538



SUMMARY
The BizTalk Interchange Interface is used to exchange documents between an application and BizTalk Server 2000 either directly or through a Receive function. When you use the Interchange.Submit method to submit a document that uses the Document parameter as a string in memory you may find that the document is processed 3-5 times slower than if the Document parameter were passed as a FilePath (read from disk).



MORE INFORMATION
When BizTalk Messaging reads in a file, the file is memory-mapped so that it never gets loaded into memory all at once. The file is read as necessary by the component until the data is available off of the physical disk. Passing the data into memory data makes the data that much larger because:


 * The file must be loaded into a string that is large enough to hold the file.


 * If the file data is non-Unicode, the data size is doubled because of the conversion to Unicode.


 * There is the cross-process marshalling of the data.


 * If this is flat file data, the conversion to XML suffers a 2x to 3x expansion in data size (a sparse flat file data is less).

STATUS
This behavior is by design.

Keywords: kbinfo kbpending KB287538

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.