Posts

Showing posts with the label ruby 3 type profiling

Ruby 3 Type profiling: Dynamic data type at run time in ruby

Hi, This is  Shubham Mishra  from India,  this is the part of  Ruby on Rails  exploration journey.  In this post we will discuss about the ruby's some special concepts and I am sure you will get excited to make your hands dirty with those code, so why to wait let's get started... Ruby 3 introduces type profiling, a new tool that lets us examine how programmes behave at runtime and determine the types of objects there. By helping the Ruby interpreter to produce more effective code, this can help performance. Type profiling is an optional feature that can be turned on or off at runtime. This blog post will go through the new type profiling functionality in Ruby 3 and give a practical use for it. To enable type profiling, we need to pass the -v command-line option to the Ruby interpreter. Here's an example: In command A, we enable type profiling and the just-in-time (JIT) compiler, which can improve performance by compiling Ruby code into machine code at...