50 Experience
0 Lessons Completed
0 Questions Solved


Posted in Checking webpacker is cause of for time sink

Working on a ruby on rails application.

Let's say I make a small change to any class file and make a request to some page on my application. Then my response times are increased by anywhere from 20 seconds to 2-3 minutes or more. The next request I make takes less than a second.

This issue happens only on local machine(not in production) when caching is turned off i.e this happens whenever config.cache_classes = false in development.rb is set to false.

I found out that one highly possible culprit for this time sink or delay is webpacker. How can I check if webpacker is the culprit for this time sink using the terminal log. If not possible with the terminal log, what are steps I can take to confirm that webpacker is responsible for the time sink.

logo Created with Sketch.

Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

© 2022 GoRails, LLC. All rights reserved.