Replies: 4 comments 9 replies
-
The code base is using fastboot, but it's not doing anything. (search for @service fastboot) |
Beta Was this translation helpful? Give feedback.
-
we have experimented with using fastboot in the past, but back then it caused us to use up a lot more memory on the servers and with the constrained resources we have available it wasn't feasible yet. I think we would have to separately server frontend and backend from different machines if we want to go down this route, to not worsen the performance of the API, which is also used by things like cargo and other services.
that is intentional. on the crates that are available on the playground we show a "try on the playground" button, but to be able to do that we need to know what crates are available there. we only load that data once on app startup though and not on every crate page. |
Beta Was this translation helpful? Give feedback.
-
ember's compiler is garbage too.
We don't bash tools like that here. Please try to be more constructive in
the future.
…On Tue, Jan 4, 2022, 8:59 AM Tobias Bieniek ***@***.***> wrote:
From my limited understanding of ember, that's bad practice.
I don't know why you think that that is bad practice?
I feel like ember is the culprit. I'll try to make a demo using svelte.
feel free to work on that, but a large scale rewrite like that is very
unlikely to be merged any time soon for various reasons, including our
current code review capacity. I'm also slightly sceptical whether it would
solve the issue, since we would still need to run Node.js on the servers,
which creates the additional memory pressure.
—
Reply to this email directly, view it on GitHub
<#4404 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABPKUSB4WJVB3LU66F5W2DUUL4MHANCNFSM5LGJCW3A>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
So, I recreated the index page of crates.io minus CSS and SVG icons using SvelteKit. The page will load without Javascript. I think the code is cleaner than the official crates.io due to the use of modules, so possibly easier to do code review?. We still need node or another Javascript engine due to Svelte compiling template to javascript (es5 or commonjs) module. |
Beta Was this translation helpful? Give feedback.
-
Currently, crates.io need Javascript to work. It doesn't need to be. I want to add server-side rendering to crates.io to make the page load faster. If the API calls are internal, the page will load much faster.
Also, on https://crates.io/crates/clap, the website fetch from https://play.rust-lang.org/meta/crates. It makes no sense. There is a lot to optimize.
Beta Was this translation helpful? Give feedback.
All reactions