rust dev tools slowness due to embedded DATA obj in skeleton #1066
Unanswered
GerardGarcia
asked this question in
Q&A
Replies: 2 comments
-
Haven't had this problem yet, to be honest.
What does this mean? You excluded it and nothing changed? FWIW, there is rust-lang/rust-analyzer#18907 hot off the press, which may be helpful. Not sure. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
That may be a silly question since I may be missing something obvious, but how do set up your project so
cargo check
, therust-analyzer
LSP server, and similar dev tools works fast enough for normal usage (so I can see errors in my editor, autocompletion, and so on) when there is this huge DATA array embedded in the skeleton?I have a pretty beefy M3 and I don't think my BPF object is particularly big (4.3MB compiled in a previous step without using
libbpf-cargo
) but my impression is that due to having it embedded in the skel.rs file thatlibbpf-cargo
generates, these tools are barely usable. I've tried to exclude the whole skeleton but without much success and well, I would prefer to not exclude it completely.Any tips?
Beta Was this translation helpful? Give feedback.
All reactions