O'Reilly logo

F# High Performance by Eriawan Kusumawardhono

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Considerations of computation expression optimization

Computation expressions can be further optimized if we carefully implement the design planning. We have discussed the design considerations of a computation workflow in the previous section of this chapter, and we shall carry the considerations as a quick foundation to perform optimization.

The optimization of computation expression is quite hard because of the following factors as consequences of computation expression syntax translations:

  1. Construction of computation expressions depends heavily on syntactic sugar that becomes language constructs. For example, ReturnFrom method is translated to a method that returns a result of the underlying type of a computation expression. Therefore, we must ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required