Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Ruby Lugdunum 2012: Message in a Bottle
Search
Konstantin Haase
June 23, 2012
Technology
2
570
Ruby Lugdunum 2012: Message in a Bottle
Konstantin Haase
June 23, 2012
Tweet
Share
More Decks by Konstantin Haase
See All by Konstantin Haase
RubyConf Philippines 2017: Magenta is a Lie
rkh
0
170
How We Replaced Salary Negotiations with a Sinatra App
rkh
17
3.9k
HTTP (RubyMonsters Edition)
rkh
5
890
GCRC 2015: Abstract Thoughts on Abstract Things
rkh
1
330
Frozen Rails: Magenta - The Art Of Abstraction
rkh
3
260
RedDotRubyConf 2014: Magenta is a Lie - and other tales of abstraction
rkh
0
680
Ancient City Ruby: Hack me, if you can!
rkh
2
380
Boston I/O: Continuous Integration
rkh
3
270
Steel City Ruby: Architecting Chaos
rkh
4
800
Other Decks in Technology
See All in Technology
統計的学習理論読み Chapter 1
kmatsui
3
520
Autify Company Deck
autifyhq
1
30k
Tohoku.Tech #1 「EC-CUBE/AWSの構築をChatGPTに相談してみました」by テンダ
jun2882
0
140
サービスメッシュ環境における OpenTelemetry 活用 / OpenTelemetry in Service Mesh
k6s4i53rx
2
800
Julia でどうしても super().hoge みたいなことしたい人へ for JuliaTokai #18
antimon2
1
110
Autopsy of a Cascading Outage from a MySQL Crashing Bug
jfg956
0
200
大規模データとの戦い方
knih
1
150
Azureコストは水道代/The_47th_Tokyo_Jazug
aeonpeople
3
350
『QAという人』が必要ではなく、『QAという技術』が必要
sadonosake
2
460
「XX試験の環境作ってよ」と言われた時によく使うAWSのソリューションについて
bun913
0
120
.NETの非同期戦略とUnityとの相互運用
neuecc
2
2.4k
社内共通ルールを値オブジェクトにして社内ライブラリとして運用してみた話
leveragestech
2
720
Featured
See All Featured
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
39
4.3k
Web Components: a chance to create the future
zenorocha
304
41k
Producing Creativity
orderedlist
PRO
335
39k
jQuery: Nuts, Bolts and Bling
dougneiner
57
7.1k
Robots, Beer and Maslow
schacon
PRO
154
7.9k
ParisWeb 2013: Learning to Love: Crash Course in Emotional UX Design
dotmariusz
101
6.6k
GitHub's CSS Performance
jonrohan
1023
450k
A designer walks into a library…
pauljervisheath
199
23k
Building Your Own Lightsaber
phodgson
97
5.6k
The Brand Is Dead. Long Live the Brand.
mthomps
48
21k
Building an army of robots
kneath
300
41k
A Philosophy of Restraint
colly
195
15k
Transcript
MESSAGE IN A BOTTLE Konstantin Haase Ruby Lugdunum June 23,
2012
@konstantinhaase (I’m sorry about that) rkh on github
Sinatra Rack, Tilt, Rubinius, ...
None
None
None
None
None
None
Ruby 1.8 is slow because it's interpreted.
Surprise! Ruby 1.9 is interpreted, too.
THANKS
Ruby
Internals
Performance
None
RubyMotion
WHAT WE’LL LOOK INTO MRI: method dispatch and execution Rubinius:
inline caches and JIT JRuby: invokedynamic
None
THEY JUST LOVE BYTECODE
None
MRI
Rubinius
JRuby (JVM 1.6)
None
Source Code Parser Parse Tree Interpreter Bytecode Compiler Bytecode Interpreter
JIT Machine Code CPU VM
THE PLAN Find Method Execute Method
Performance
HOW TO SPEED UP? Find Method Faster Execute Method Faster
FIND FASTER Inline Cache (aka Call/ Send Site Cache) Lookup
Cache Inlining
EXECUTE FASTER Reduce operations Just-in-time compilation Speed up search
None
rb_method_entry rb_method_entry_without_cache search_method
None
None
None
None
None
None
None
None
None
None
None
None
None
SPECIALIZED METHODS cached bytecode code with breakpoints specialized for arguments
JITed code
None
None
None
None
None
None
None
Process invokedynamic JVM method bootstrap guard fallback
None
THANKS