latency problem with workflow foundation RRS feed

  • Question

  • Hi all,

    We are using Windows Workflow Foundation 4.0 in an application and we have some latency problems for an operation that must be very quick for us. We tried this : http://msdn.microsoft.com/fr-fr/library/gg281645.aspx ; but without success. Do you have any ideas? can you help us on this subject?

    Fabien Decret

    Adeneo Embedded

    Device Application Development MVP

    Thursday, May 16, 2013 3:26 PM


  • 1. do you use workflowinspectionservices in order to cache your activity?

    building the XAML is very expansive.

    and you should only 'new' your activity once, after that your activity should use context.

    2. do you properly use async operations?

    the WF engine has limit number of threads to execute your activities (event if you change the setmin of the threadpool)

    no if the thread pool only has x threads and you are using some I/O operations in a sync mode, the threads will run out and the WF engine may decide against spanning new threads (spanning new threads also take time) then you will run out of threads and you will start experiencing latency.

    from personal experience the WF engine one used correctly is very efficient

    • Marked as answer by Pengzhen Song Thursday, May 23, 2013 9:55 AM
    Monday, May 20, 2013 2:54 PM