Remix.run Logo
Neywiny 7 hours ago

Can you elaborate? The header meaning the top part of the page? I just checked on a recent repo I visited and it has the usual banner (which would stay the same), the repo path, some links, and some stats. Considering every page navigation would likely pull which links and stats are shown, why is this a delta to go to another repo and why are presumably 3 database entries (possible links, stars, forks) so slow?

ezfe 7 hours ago | parent | next [-]

Navigation within a repository does not reload the page, only the section below the header.

BlackFingolfin 5 hours ago | parent [-]

which is also driving me nuts because it frequently fails to update the issue and PR counts when I close issues or PRs. Only a hard reload, or closing the tab and opening a new new one, fixes it.

geerlingguy 4 hours ago | parent [-]

Yeah over the past six months I've trained myself to just hit Command-R every time I switch back to a GitHub issue tab, otherwise things get stale or broken far too often.

mvdtnz 6 hours ago | parent | prev [-]

I can't speak for GitHub but I've worked on multiple nav headers for large SaaS products and they can be ridiculously heavy weight to render given they appear on every page. They tend to be a dumping ground for features, many of which require their own permissions checks, feature flag checks, etc. it's not unusual to have to perform hierarchical permissions checks. They also tend to contain contextual info about the current nav state and dynamic information about navigable states.

A lot of this can be cached but it's easy to see why moving from one repo to another will invalidate most or all permission checks and feature flag checks.

Matt138 6 hours ago | parent | next [-]

Yes, pretty much this as well as some additional complexities due to the issue content being in React and the header in Rails - to the cost of approx 500-800ms p50 for a page load vs sub 100ms for a nav to an issue in the same repo (or without the header which is what we tried with this change here)

nchmy 3 hours ago | parent | next [-]

I'm curious, what causes the rails header to be so slow? They have a pretty good fragment caching story, don't they?

Banditoz 3 hours ago | parent | prev | next [-]

Has the team considered going back all-in on Rails and SSR instead of this hybrid approach?

altairprime 2 hours ago | parent [-]

Have they completed the do-or-die Azure migration? I thought it had another year or something left..

Neywiny 4 hours ago | parent | prev [-]

That does seem very long so it's good you're working on it

AlotOfReading 5 hours ago | parent | prev [-]

How many checks are we talking? A well-implemented monotonic system should be able to do tens of thousands of these checks (or more) in the time budget I associate with a heavy page, and start before the entirety of the permissions/feature data is available.