Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7536487
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T06:35:14+00:00 2026-05-30T06:35:14+00:00

We have a very large app with TONS of backbone code throughout our codebase…

  • 0

We have a very large app with TONS of backbone code throughout our codebase… Obviously loading 100 or so js files is a big strain on HTTP requests from Heroku and we decided to package them up to speed things up. We decided to use the sinatra-assetpack gem to compress and package them to reduce overall size and HTTP requests. Surprisingly, even though we saved a decent amount of space and reduced the number of HTTP requests by nearly 100, our logs in Heroku show an INCREASE in server time on the GET requests!

I’m struggling to understand why this may be happening but here’s a quick printout:

Before assetpack:
heroku[router]: GET xxxx dyno=web.5 queue=0 wait=0ms service=888ms status=200 bytes=35726

After assetpack:
heroku[router]: GET xxxx dyno=web.6 queue=0 wait=0ms service=1862ms status=200 bytes=30103

The size of the request goes down by 15% while the service time more than doubles. What is going on here??

edit: I should mention that assetpack builds the compressed versions on deploy and then serves then from memory… Perhaps that could have an impact?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T06:35:15+00:00Added an answer on May 30, 2026 at 6:35 am

    Edited:

    I think I figured it out. When you have a heroku app that is sleeping – all free apps sleep unless in use – it takes Heroku about a second or so to boot the app. That’s why you get 860 ms to boot. Then when you add in the asset manager, it has a lot to do, so takes more time. You need to hit it 10x in a row to see changes to the speed.

    For instance, the initial hit to my app takes 860ms, but the second, third, etc call takes about 5ms.

    Older thoughts:

    ‘Builds the compressed versions on deploy’ – Even if its working right you will deploy for each version of your app that runs (each dyno), or more – if the app needs a reboot for other reasons, like a crash, etc.

    Another thought: The docs say ‘heroku support’ whatever that means. But they also talk about ‘cache busting’ – what if each dyno of your app has a different idea of what the cache busting special number is – so dyno #1 says the special # is 892094.js, while dyno #2 says 928449.js, and since dynos are assigned at random – you have thrashing.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I developed an app that have to download very large files, 100 MB average.
I have a very large codebase (read: thousands of modules) that has code shared
I have cyclical import issues adding some new code to a very large app,
I have an android app that has to load very large files on start
I have a very large app, 1.5 million lines of C++, which is currently
I have an app that needs to handle very large strings between a SQL
I have a very large code base that contains extensive unit tests (using CppUnit).
We have some very large data files (5 gig to 1TB) where we need
I have a very large C project with many separate C files and headers
I have two (very large) text files. What is the fastest way - in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.