Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
F# High Performance

You're reading from   F# High Performance Increase your F# programming productivity and focus on performance optimization with best practices, expert techniques, and more

Arrow left icon
Product type Paperback
Published in Jan 2017
Publisher Packt
ISBN-13 9781786468079
Length 338 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Eriawan Kusumawardhono Eriawan Kusumawardhono
Author Profile Icon Eriawan Kusumawardhono
Eriawan Kusumawardhono
Arrow right icon
View More author details
Toc

Table of Contents (9) Chapters Close

Preface 1. Performing Common Optimizations in F# 2. Performance Measurement FREE CHAPTER 3. Optimizing Data Structures 4. Introduction to Concurrency in F# 5. Advanced Concurrency Support in F# 6. Optimizing Type Provider 7. Language Features and Constructs Optimization 8. Optimizing Computation Expressions

Introduction to the nature of F# code compilation

Before we measure .NET, we need to understand the nature of F# code and the nature of compiling the F# code. Of course, we can just analyze and look at the source code. We can also try to search for any patterns of non-performing code of known bottlenecks, which will be explained in Chapter 3,Optimizing Data Structures and Chapter 7, Language Features and Constructs Optimization.

General overview of F# compiler processes and results

All of the code in F# is compiled into byte codes of the IL assembly (as it's also an assembly language) either by the F# compiler or by using F# in interactive mode (by using FSI). This IL is then run in either Debug mode as Just In Time (JIT) code is further optimized by compiling it in Release mode. Running it in Release mode will yield compiled code to be optimized for .NET native by the Ahead Of Time (AOT) method.

For more information about .NET native, here is the official explanation in the MSDN Library...

You have been reading a chapter from
F# High Performance
Published in: Jan 2017
Publisher: Packt
ISBN-13: 9781786468079
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image