https://github.com/mkdika/rails_performance_notes
Collection of Ruby on Rails performance optimisation notes
https://github.com/mkdika/rails_performance_notes
notes performance ruby-on-rails tutorial
Last synced: about 1 year ago
JSON representation
Collection of Ruby on Rails performance optimisation notes
- Host: GitHub
- URL: https://github.com/mkdika/rails_performance_notes
- Owner: mkdika
- Created: 2021-05-26T04:00:11.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-05-26T12:14:59.000Z (almost 5 years ago)
- Last Synced: 2025-01-31T09:45:15.442Z (about 1 year ago)
- Topics: notes, performance, ruby-on-rails, tutorial
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ruby on Rails Performance Notes
This is my brain dump notes about Ruby on rails performance optimization.
## Memory issues
### Jemalloc
Jemalloc is use as alternative to default cruby memory allocator: `malloc`, it is claim to be more effective allocation for C, and it is compatible with MRI.
I have some experience taming Rails memory fragmentation in production, and one of how it was solved is with applying Jemalloc.
### Reference
- [Website](http://jemalloc.net/)
- [GitHub](https://github.com/jemalloc/jemalloc)
- [Menurunkan penggunaan memory untuk aplikasi Ruby (ID)](https://medium.com/binar-academy/menurunkan-penggunaan-memory-untuk-aplikasi-ruby-newbie-friendly-c7b2af11b4a8)
- [Lower memory usage of your rails app with jemalloc](https://bubblin.io/blog/jemalloc)
- [What causes Ruby memory bloat?](https://www.joyfulbikeshedding.com/blog/2019-03-14-what-causes-ruby-memory-bloat.html)
## References
- [Rails Guide - Performance Testing Rails Applications](https://guides.rubyonrails.org/v3.2/performance_testing.html)
## Books
### Ruby
- [Ruby Performance Optimization](https://pragprog.com/titles/adrpo/ruby-performance-optimization/)
### Rails
- [The complete guide to Rails performance](https://www.railsspeed.com/)