All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

Optimizing Ruby Path Methods for Improved CI Performance

By

weaksauce

1mo ago· 17 min readen

Summary

The article discusses optimizing Ruby path methods to improve CI performance, focusing on how Ruby's require and load methods work with file paths. The author shares their experience at Intercom working on CI improvements, explaining how Ruby's path resolution can impact test suite performance. The content covers technical details about Ruby's $LOAD_PATH, require_relative, and how to optimize path lookups for faster CI execution times.

Key quotes

· 4 pulled
When working with very large test suites, it becomes critical to optimize how Ruby processes handle file path resolution
Ruby's require method searches through $LOAD_PATH, which can become a performance bottleneck in large applications
Understanding the difference between require and require_relative is key to optimizing CI performance
Proper path optimization can significantly reduce the time it takes to get a Ruby process ready to run tests
Snippet from the RSS feed
Back in November last year, I started a new job at Intercom, and one of the first projects I got to work on was improving the Intercom monolith CI with some of my new colleagues.

You might also wanna read