A small tool to view real-world ActivityPub objects as JSON! Enter a URL
or username from Mastodon or a similar service below, and we'll send a
request with
the right
Accept
header
to the server to view the underlying object.
{
"@context": [
"https://join-lemmy.org/context.json",
"https://www.w3.org/ns/activitystreams"
],
"type": "Page",
"id": "https://infosec.pub/post/18414382",
"attributedTo": "https://infosec.pub/u/Doods",
"to": [
"https://programming.dev/c/rust",
"https://www.w3.org/ns/activitystreams#Public"
],
"name": "rust_analyzer takes forever to load; `cargo check` is instant.",
"cc": [],
"content": "<p>I was using <a href=\"iced.rs\" rel=\"nofollow\">Iced</a> as a dependency, but wanted to tweak its source code for some reason, so I jumped into the folder where cargo downloads dependencies, and went into iced_wgpu 13.5 (I think that’s the version).</p>\n<p>I could make a change, then run</p>\n<p><code>cargo clean -p iced_wgpu && cargo check</code></p>\n<p>in my other project for instant feedback, yet it took rust_analyzer <em>at least</em> 5 whole minutes to stop hallucinating.</p>\n<p>Can I disable some functionality of <code>rust_analyzer</code>? I only use it for jump-to-definition, linting and syntax highlighting; I don’t even use autocomplete.</p>\n<h1>Setup:</h1>\n<ul>\n<li>\n<p>Desktop that thermally throttles only when both the IGPU and the CPU are under full load, and is cool otherwise.</p>\n</li>\n<li>\n<p>CPU: Intel I5-7500</p>\n</li>\n<li>\n<p>RAM: 8 GiB DDR-4</p>\n</li>\n<li>\n<p>Editor: NVIM v0.11.0-dev | Build type: RelWithDebInfo | LuaJIT 2.1.0-beta3 (I had the same issue with other versions as well).</p>\n</li>\n</ul>\n<h1>TLDR</h1>\n<p>What can I disable in rust_analyzer to boost performance while maintaining jump-to-definition, linting and syntax-highlighting, or what can I do to boost rust_analyzer for big projects in general?</p>\n",
"mediaType": "text/html",
"source": {
"content": "I was using [Iced](iced.rs) as a dependency, but wanted to tweak its source code for some reason, so I jumped into the folder where cargo downloads dependencies, and went into iced_wgpu 13.5 (I think that's the version).\n\nI could make a change, then run\n\n`cargo clean -p iced_wgpu && cargo check`\n\nin my other project for instant feedback, yet it took rust_analyzer *at least* 5 whole minutes to stop hallucinating.\n\nCan I disable some functionality of `rust_analyzer`? I only use it for jump-to-definition, linting and syntax highlighting; I don't even use autocomplete.\n\n# Setup:\n* Desktop that thermally throttles only when both the IGPU and the CPU are under full load, and is cool otherwise.\n\n* CPU: Intel I5-7500\n* RAM: 8 GiB DDR-4\n* Editor: NVIM v0.11.0-dev | Build type: RelWithDebInfo | LuaJIT 2.1.0-beta3 (I had the same issue with other versions as well).\n\n\n# TLDR\nWhat can I disable in rust_analyzer to boost performance while maintaining jump-to-definition, linting and syntax-highlighting, or what can I do to boost rust_analyzer for big projects in general?",
"mediaType": "text/markdown"
},
"attachment": [],
"sensitive": false,
"published": "2024-10-04T07:44:46.769539Z",
"language": {
"identifier": "en",
"name": "English"
},
"audience": "https://programming.dev/c/rust",
"tag": [
{
"href": "https://infosec.pub/post/18414382",
"name": "#rust",
"type": "Hashtag"
}
]
}