F# High Performance

Build powerful and fast applications with F#

F# High Performance

This ebook is included in a Mapt subscription
Eriawan Kusumawardhono

Build powerful and fast applications with F#
$0.00
$35.99
$44.99
$29.99p/m after trial
RRP $35.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 4,000+ eBooks & Videos
  • 40+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781786468079
Paperback338 pages

Book Description

F# is a functional programming language and is used in enterprise applications that demand high performance. It has its own unique trait: it is a functional programming language and has OOP support at the same time.

This book will help you make F# applications run faster with examples you can easily break down and take into your own work. You will be able to assess the performance of the program and identify bottlenecks.

Beginning with a gentle overview of concurrency features in F#, you will get to know the advanced topics of concurrency optimizations in F#, such as F# message passing agent of MailboxProcessor and further interoperation with .NET TPL. Based on this knowledge, you will be able to enhance the performance optimizations when implementing and using other F# language features.

The book also covers optimization techniques by using F# best practices and F# libraries. You will learn how the concepts of concurrency and parallel programming will help in improving the performance. With this, you would be able to take advantage of multi-core processors and track memory leaks, root causes, and CPU issues.

Finally, you will be able to test their applications to achieve scalability.

Table of Contents

Chapter 1: Performing Common Optimizations in F#
Understanding the nature of F# code
Overview of common bottlenecks
Common samples of misunderstood concurrent problems
Overview of F# tooling in Visual Studio
Introduction to debugging in F#
Summary
Chapter 2: Performance Measurement
Introduction to the nature of F# code compilation
Using CLR Profiler 4.5
Ways to measure performance quantitatively
Summary
Chapter 3: Optimizing Data Structures
Overview and best practices of types in F#
Quick introduction to types in F#
Quick overview of generic type support in F#
Introduction to memory storage allocation
Best practices in using F# collections
Comparing F# List to .NET List<T>
Comparing F# Map to Dictionary<TKey,TValue>
Choosing a value evaluation strategy
Scenarios involving evaluation strategy and memory allocations
Summary
Chapter 4: Introduction to Concurrency in F#
Introducing concurrency support in F# 4
Identifying blocking threads
Introducing asynchronous workflow
Introduction to interop with .NET TPL
Summary
Chapter 5: Advanced Concurrency Support in F#
Using F# MailboxProcessor
Managing side effects inside MailboxProcessor and asynchronous workflows
Parallel programming with .NET TPL
Summary
Chapter 6: Optimizing Type Provider
Overview of F# type provider
Understanding the type provider building blocks
Implementing your own type provider
Common pitfalls in implementing type provider
Summary
Chapter 7: Language Features and Constructs Optimization
Overview of language features and constructs optimization
Optimizing common F# language constructs
Optimizing inline functions
Identifying tail call in recursive constructs
Summary
Chapter 8: Optimizing Computation Expressions
Quick introduction to F# computation expression
General computation expression design considerations
Considerations of computation expression optimization
Summary

What You Will Learn

  • Understand how the execution of functions in F# works
  • Identify common performance bottlenecks
  • Implement best practices to optimize performance
  • Use the available tooling to help measure performance
  • Combine the best practice of asynchronous and synchronous
  • Optimize further using various F# language constructs

Authors

Table of Contents

Chapter 1: Performing Common Optimizations in F#
Understanding the nature of F# code
Overview of common bottlenecks
Common samples of misunderstood concurrent problems
Overview of F# tooling in Visual Studio
Introduction to debugging in F#
Summary
Chapter 2: Performance Measurement
Introduction to the nature of F# code compilation
Using CLR Profiler 4.5
Ways to measure performance quantitatively
Summary
Chapter 3: Optimizing Data Structures
Overview and best practices of types in F#
Quick introduction to types in F#
Quick overview of generic type support in F#
Introduction to memory storage allocation
Best practices in using F# collections
Comparing F# List to .NET List<T>
Comparing F# Map to Dictionary<TKey,TValue>
Choosing a value evaluation strategy
Scenarios involving evaluation strategy and memory allocations
Summary
Chapter 4: Introduction to Concurrency in F#
Introducing concurrency support in F# 4
Identifying blocking threads
Introducing asynchronous workflow
Introduction to interop with .NET TPL
Summary
Chapter 5: Advanced Concurrency Support in F#
Using F# MailboxProcessor
Managing side effects inside MailboxProcessor and asynchronous workflows
Parallel programming with .NET TPL
Summary
Chapter 6: Optimizing Type Provider
Overview of F# type provider
Understanding the type provider building blocks
Implementing your own type provider
Common pitfalls in implementing type provider
Summary
Chapter 7: Language Features and Constructs Optimization
Overview of language features and constructs optimization
Optimizing common F# language constructs
Optimizing inline functions
Identifying tail call in recursive constructs
Summary
Chapter 8: Optimizing Computation Expressions
Quick introduction to F# computation expression
General computation expression design considerations
Considerations of computation expression optimization
Summary

Book Details

ISBN 139781786468079
Paperback338 pages
Read More

Read More Reviews