Backend
Tuning Ruby's Global Method Cache
Shopify Engineering0 views
I was recently profiling a production Shopify application server using perf and noticed a fair amount of time being spent in a particular function, st_lookup, which is used by Ruby’s MRI implementation for hash table lookups: Hash tables are used all over MRI, and not just for the Hash object; global variables, instance variables, classes, and the garbage collector all use MRI’s internal hash table implementation, st_table. Unfortunately, what this profile did not show were the callers of st_lookup. Is this some application code that has gone wild? Is this an inefficiency in the VM?
Source:https://shopify.engineering/17489064-tuning-rubys-global-method-cachePreviousBuilding and Testing Resilient Ruby on Rails ApplicationsNextDocker at Shopify: How We Built Containers that Power Over 100,000 Online Shops
Related posts
New York Times and other outlets sue web browser Brave over alleged content scraping
0TechCrunch
Web host Squarespace lays off 19% of its employees
0TechCrunch
Feature Flag Comparison: Reconstructing Silent Imports With Free and Paid Tools
0dev.to
I built K-Hangang: a peaceful 3D walk along Seoul's Han River
0dev.to
Building a Developer Community Beyond Just Coding
0dev.to
A Tenant Leak Does Not Throw an Error. It Just Returns the Wrong Rows.
0dev.to