Oj
MemoryProfiler
Our great sponsors
Oj | MemoryProfiler | |
---|---|---|
7 | 6 | |
3,092 | 1,658 | |
- | - | |
7.1 | 3.4 | |
2 days ago | 11 months ago | |
C | Ruby | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Oj
-
What JSON Serializers are you using with rails ?
Hi guys, I know that Hotwire is the sh*t in rails nowadays, but if you were to build an API with rails, which serializer would you use ? I have my eyes on jsonapi-serializer with oj , but I am not sure if that is the best option nowadays. The jsonapi-serializer repo is a bit confusing, regarding which version should I use, same for ActiveModelSerializer to be honest.
-
Suggestions for how to reduce memory usage
Install OJ if you render out JSON a lot
-
Oj VS jsonic - a user suggested alternative
2 projects | 21 Nov 2022
-
How can I optimize my Rails app which is delivering thousands of objects to Vue?
Switch to using a faster serialization library like OJ.
-
Hunting down spooky JSON module redefinition via Oj
I knew that our app was using Oj for JSON serialisation. But I didn't initially notice anything spooky about pretty_generate. A colleague of mine (shoutout Iain) had keener eyes and pulled up the C file that dealt with something spooky sounding in mimic_json.c.
- Oj (Ruby) Just Got Faster
-
How to use oj with jb in Rails 6?
Hello there, I am using Rails 6.1, I am accustomed to JBuilder, but in an attempt to increase the performance, I decided to use [jb](https://github.com/amatsuda/jb). How can I use [oj](https://github.com/ohler55/oj/) with jb?
MemoryProfiler
-
Suggestions for how to reduce memory usage
Wire the memory_profiler into an around_action to identify your bloaty actions.
-
A Deep Dive into Memory Leaks in Ruby
The memory_profiler gem offers a very simple API and a detailed (albeit a little overwhelming) allocated and retained memory report — that includes the classes of objects that are allocated, their size, and where they were allocated. It's straightforward to add to our leaky program.
-
Ok y’all. How can we get this kind of real-time memory profiling in Ruby? Does it already exist? Is anyone working on this?
memory_profiler
-
Advanced ActiveRecord Querying - With Benchmarks!
We don't need to rely upon a priori reasoning only, we can use memory_profiles and benchmark_ips to compare the memory consumption and iterations per second of each solution.
-
Is there a more efficient way to do these permutation calculations?
Either https://github.com/tmm1/stackprof for cpu or https://github.com/SamSaffron/memory_profiler for memory. In practice profiling and removing allocations also gives a large perf boost.
-
Reduce memory consumption with a custom ActiveRecord attribute
Our project has one endpoint which gets called quite often. So, I profiled it with memory profiler and saw a line pointing to hstore.rb.
What are some alternatives?
Nokogiri - Nokogiri (鋸) makes it easy and painless to work with XML and HTML from Ruby.
rack-mini-profiler - Profiler for your development and production Ruby rack apps.
Jb - A simple and fast JSON API template engine for Ruby on Rails
bullet - help to kill N+1 queries and unused eager loading
Ox - Ruby Optimized XML Parser
Timeasure - Transparent method-level wrapper for profiling purposes in Ruby
HTML::Pipeline - HTML processing filters and utilities
prosopite - :mag: Rails N+1 queries auto-detection with zero false positives / false negatives
TOML - Parse TOML. Like a bawss.
memray - Memray is a memory profiler for Python
Sablon - Ruby Document Template Processor based on docx templates and Mail Merge fields.
perftools.rb - gperftools for ruby code