|
|
IN THE BRAIN OF IULIAN DRAGOS, 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:
Monday 6th December 2010
Track 1
SCALA - PERFORMANCE IMPROVEMENTS OF A FACTOR OF 4 TO 30, BOXING AND SPECIALIZATION
Iulian Dragos: 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. View the podcast here...
|
|
|
|
|
OTHER SCALA & F# EVENTS
|
The London Python Group
FREE EVENT:
Be a better developer
London, Tuesday, May 21st
|
|
F#unctional Londoners Meetup Group
FREE EVENT:
F# Type Providers Hands On
London, Thursday, May 23rd
|
|
F#unctional Londoners Meetup Group
FREE EVENT:
F# on iPad and iPhone with Xam
London, Thursday, May 30th
|
|
Functional Programming in the enterprise
FREE EVENT:
In The Brain of Jon Pither
London, Monday, June 3rd
|
|
Introducing Adept
FREE EVENT:
In The Brain of Fredrik Ekholdt
London, Monday, June 3rd
|
|
The London Clojure Community
FREE EVENT:
Deuce is (not yet) Emacs under
London, Tuesday, June 4th
|
|
Typesafe's Scaling up with Akka & Scala
2 DAY COURSE. Featuring Philipp Haller London, Wednesday, June 5th
|
|
Writing Concurrent Code with Lock-Free Algorithms
3 DAY COURSE. Featuring Martin Thompson London, Wednesday, June 5th
|
|
|
|
|
© Copyright 2003-2013, Skills Matter Ltd
|
|
|