Tags
Language
Tags
April 2024
Su Mo Tu We Th Fr Sa
31 1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 1 2 3 4

Rails 4.1 Performance Fundamentals [repost]

Posted By: ParRus
Rails 4.1 Performance Fundamentals [repost]

Rails 4.1 Performance Fundamentals
WEBRip | English | MP4 + Project files | 1024 x 768 | AVC ~405 kbps | 15 fps
AAC | 121 Kbps | 44.1 KHz | 2 channels | 4h 20mn | 809 MB
Genre: eLearning Video / Development, Programming

Speed up your Ruby on Rails 4.1 (and 4.0 and 3.2) applications. This course covers profiling techniques; making fewer, faster, database queries; Russian Doll caching; Turbolinks and more.
Speed up your Ruby on Rails 4.1 applications. With the help of some gems, all techniques in this course can also be used in Rails 3.2 apps. This course teaches pragmatic, Rails-specific techniques to profile performance, find and fix slow database queries, get alerted automatically whenever you create an N+1 query, and simulate latency and low bandwidth. You'll also learn to take advantage of the browser's cache with ETags or time-based expiration, set up Memcached for server-side caching, speed up view rendering with fragment caching, cache nested fragments with Russian Doll caching, and use Turbolinks and pjax to give a multi-page app the responsiveness of a single-page app.

Content:

Introduction
- Introduction
- Why Performance?
- Premature Optimization
- My Recommended Approach
- Performance Vs. Throughput Vs. Scalability
- Rails Performance on the Client Side, Server Side, and in Between
- Summary

Ruby 2.1
- Introduction
- Copy-on-write Memory Sharing
- Generational Garbage Collection
- Faster Than 2.0
- Much Faster Than 1.9.3
- I Teach U App and Apache Bench
- Comparing 1.9.3 to 2.1.1 Using Apache Bench
- Memory Consumption in Ruby 2.1.0 and 2.1.1
- Summary

Rails Performance and the Database
- Introduction
- Profiling, X-Runtime, and the Browser's Network Debug Panel
- The Rails Log
- Pagination and Kaminari
- Missing Indexes and Lol_dba
- Bullet, N+1 Queries, and Counter Caches
- Rack-Mini-Profiler and Flamegraphs
- Select and Pluck
- The Query Cache
- New Relic and Rails Panel
- Do Not Order By :created_at
- Making Multiple Writes? Use a Transaction
- Iterating Over Tons of Rows? Use find_each
- Summary

Browser Caching
- Introduction and HTTP Headers
- Last-Modified and If-Modified-Since
- ETag and If-None-Match
- Cache-Control and Max-age
- Rack::ETag and Rack::ConditionalGet
- stale? and fresh_when?
- Declarative ETags and the ETagger Gem
- Setting Cache-Control: max-age With expires_in
- Disable Middleware that Modifies the Body
- Demo
- Summary

Fragment Caching
- Introduction and Cache Stores
- Setting Up Memcached in Rails and for Development
- Fragment Caching
- Fragment Caching With Array as Cache Key
- Fragment Caching a Paginated List
- Hash as a Fragment Cache Key
- Cache Expiration Strategies, From Best to Worst
- Cache Key Includes a Digest of View Contents
- Demo: Fragment Caching the Index Pages
- Demo: Fragment Caching the Show Pages
- Benchmark Results From Fragment Caching
- Summary

Russian Doll Caching
- Introduction to Russian Doll Caching
- Hiding Links
- Time Zones
- Increasing Cache Hits
- Helping Rails Know What Partial was Used
- Demo: Implementing Russian Doll Caching
- Benchmark Results From Russian Doll Caching
- Summary

Turbolinks and pjax
- Introduction and the Responsiveness Myth
- Installing Turbolinks
- How Turbolinks Works
- Third Party Plugin Compatibility and jQuery Turbolinks
- Bind $(document) Events Outside 'ready'
- All Scripts in 'body' are Evaluated
- Opt Out for Selected Links
- Testing Turbolinks
- Demo: Benchmarking Turbolinks
- Transition Cache
- pjax
- Summary

Conclusion
- Conclusion and Why Performance?
- Overview of Topics Covered in This Course
- More Learning

also You can watch my other last: Programming-posts

General
Complete name : 07_10-Transition Cache.mp4
Format : MPEG-4
Format profile : Base Media / Version 2
Codec ID : mp42
File size : 16.9 MiB
Duration : 4mn 27s
Overall bit rate mode : Variable
Overall bit rate : 528 Kbps
Encoded date : UTC 2014-07-01 23:31:43
Tagged date : UTC 2014-07-01 23:32:01
Writing application : HandBrake 0.9.8 2012071700

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Baseline@L3.1
Format settings, CABAC : No
Format settings, ReFrames : 2 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 4mn 27s
Duration_FirstFrame : 67ms
Bit rate : 405 Kbps
Width : 1 024 pixels
Height : 768 pixels
Display aspect ratio : 4:3
Frame rate mode : Constant
Frame rate : 15.000 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.034
Stream size : 12.9 MiB (77%)
Writing library : x264 core 120
Encoding settings : cabac=0 / ref=2 / deblock=1:0:0 / analyse=0x1:0x111 / me=umh / subme=6 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=0 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=12 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=0 / weightp=0 / keyint=50 / keyint_min=15 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=20.0 / qcomp=0.60 / qpmin=3 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Encoded date : UTC 2014-07-01 23:31:43
Tagged date : UTC 2014-07-01 23:32:01
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709

Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : 40
Duration : 4mn 27s
Bit rate mode : Variable
Bit rate : 121 Kbps
Maximum bit rate : 147 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 44.1 KHz
Compression mode : Lossy
Stream size : 3.88 MiB (23%)
Title : Stereo
Language : English
Encoded date : UTC 2014-07-01 23:31:43
Tagged date : UTC 2014-07-01 23:32:01
Screenshots

Rails 4.1 Performance Fundamentals [repost]

Rails 4.1 Performance Fundamentals [repost]

Rails 4.1 Performance Fundamentals [repost]

Rails 4.1 Performance Fundamentals [repost]

Rails 4.1 Performance Fundamentals [repost]

Exclusive eLearning Videos ParRus-blogadd to bookmarks

Rails 4.1 Performance Fundamentals [repost]