|
|
In The Brain of Iulian Dragos: Scala - Performance improvements of a factor of 4 to 30, Boxing and Specialization
Scala - Performance improvements of a factor of 4 to 30, Boxing and Specialization
Before 2.8, the scala compiler compiled generic classes using type erasure, just like Java. However, there is a significant performance drop for primitive types: in order to satisfy the JVM requirements, primitive values need to be boxed when they enter generic code.
Boxing means wrapping a primitive value in a heap-allocated object. Whenever code operates on such values, it needs first to extract the value from the object, operate on it, then box it back.
Specialization ensures that boxing does not happen, by generating specialized versions of generic code.
Performance improvements may reach an order of magnitude.
In this talk Iulian will look at several specialized classes in the standard library, he will explain how specialization works, the benefits and some potential traps.
Just a thought . . .
If you enjoy this talk, you might also be interested in:
ABOUT IULIAN DRAGOS
|
Iulian Dragos is a key member of Martin Odersky’s EPFL's Scala team. For the last six years he has been the main contributor for many critical Scala components including the compiler backend, its optimizer and the Eclipse build manager.
More about Iulian Dragos
|
|
PODCAST SCALA - PERFORMANCE IMPROVEMENTS OF A FACTOR OF 4 TO 30, BOXING AND SPECIALIZATION
|
|
|
|
OTHER SCALA & F# EVENTS
|
Progressive .NET Tutorials 2012
CONFERENCE (3 DAYS)
London, Tuesday, May 29th
BOOK NOW!
|
|
2012 Progressive F# Tutorials NYC
CONFERENCE (2 DAYS)
New York City, Tuesday, June 5th
BOOK NOW!
|
|
The London Python Group
FREE EVENT:
Python code review
London, Wednesday, June 6th
|
|
London Scala Users' Group
FREE EVENT:
Real-World Scala Project
London, Wednesday, June 13th
|
|
GeekOut 2012
CONFERENCE (2 DAYS)
Tallinn, Thursday, June 14th
BOOK NOW!
|
|
Typesafe's Fast Track to Scala
2 DAY COURSE. Featuring Trond Bjerkestrand London, Monday, June 18th
|
|
QCon New York 2012
CONFERENCE (3 DAYS)
New York, Monday, June 18th
BOOK NOW!
|
|
Typesafe's Advanced Scala
2 DAY COURSE. Featuring Heiko Seeberger London, Wednesday, June 20th
|
|
|
|