F# High Performance

Build powerful and fast applications with F#
Preview in Mapt

F# High Performance

Eriawan Kusumawardhono

Build powerful and fast applications with F#
Mapt Subscription
FREE
$29.99/m after trial
eBook
$25.20
RRP $35.99
Save 29%
Print + eBook
$44.99
RRP $44.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$25.20
$44.99
$29.99p/m after trial
RRP $35.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


F# High Performance Book Cover
F# High Performance
$ 35.99
$ 25.20
Testing with F# Book Cover
Testing with F#
$ 26.99
$ 18.90
Buy 2 for $35.00
Save $27.98
Add to Cart
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 

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

Recommended for You

Learning F# Functional Data Structures and Algorithms Book Cover
Learning F# Functional Data Structures and Algorithms
$ 31.99
$ 22.40
F# 4.0 Design Patterns Book Cover
F# 4.0 Design Patterns
$ 35.99
$ 25.20
Testing with F# Book Cover
Testing with F#
$ 26.99
$ 18.90
Mastering F# Book Cover
Mastering F#
$ 35.99
$ 25.20
F# for Machine Learning Essentials Book Cover
F# for Machine Learning Essentials
$ 31.99
$ 22.40
Mastering .NET Machine Learning Book Cover
Mastering .NET Machine Learning
$ 43.99
$ 30.80