Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Railsbench - Rdoc Generation - Microbenchmarks - Proposal to Enable VWare Resizing Objects - Shrinking RVALUE

Ruby Central via YouTube

Overview

Limited-Time Offer: Up to 75% Off Coursera Plus!
7000+ certificate courses from Google, Microsoft, IBM, and many more.
This course aims to teach learners how to optimize Ruby's memory layout by moving system heap memory into Ruby heap memory. The course covers topics such as RVALUE structure, Ruby object structure, heap page structure, building the freelist, allocating Ruby objects, garbage collection, CPU caches, and the Variable Width Allocation project. The teaching method includes lectures on various memory optimization techniques and real-world examples. This course is intended for Ruby developers looking to improve the performance and efficiency of their Ruby applications.

Syllabus

Intro
RVALUE structure
Ruby Object Structure
Heap page structure
Building the freelist
Allocating Ruby objects
Ruby's garbage collector
Marking phase
Marking example
Sweeping phase
Sweeping example
Compact phase
Compaction algorithm
Compaction example
Two different categories of Strings
Allocating an embedded string
Allocating a heap allocated string
CPU caches
CPU cache properties
Ruby cache performance
Overhead of malloc
The Variable Width Allocation project
Variable Width cache performance
RClass Allocation
Size pools
Types of String allocation
Allocating a short string
Allocating a longer string
Resizing a string
Shopify production
Methodology
railsbench
rdoc generation
Microbenchmarks
Proposal to enable VWA
Resizing objects
Shrinking RVALUE

Taught by

Ruby Central

Reviews

Start your review of Railsbench - Rdoc Generation - Microbenchmarks - Proposal to Enable VWare Resizing Objects - Shrinking RVALUE

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.