Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Don't serialise error data #25

Open
nrc opened this issue Sep 29, 2016 · 9 comments
Open

Don't serialise error data #25

nrc opened this issue Sep 29, 2016 · 9 comments
Assignees

Comments

@nrc
Copy link
Member

nrc commented Sep 29, 2016

We are running the compiler in-process, so we should just pass the data, rather than serialising it to JSON and then back again.

@nrc nrc added this to the Beta milestone Jan 12, 2017
@nrc nrc self-assigned this Mar 2, 2017
@nrc
Copy link
Member Author

nrc commented Mar 2, 2017

I'll look into this in the beta timeframe, but I don't think this should block necessarily. I'm not convinced we will see a meaningful perf improvement.

@Xanewok
Copy link
Member

Xanewok commented Sep 24, 2017

@nrc Is FIXME(#25) still relevant?

If so, how should it be implemented?

@nrc nrc reopened this Sep 24, 2017
@nrc
Copy link
Member Author

nrc commented Sep 24, 2017

Yeah, the error message stuff is still relevant. I haven't thought in details how to fix it. I think that plan sounds reasonable. I'd prefer if we could just move the diagnostics to the RLS, rather that store them in an Arc-Mutex, but I suppose the threading causes issues.

@Xanewok
Copy link
Member

Xanewok commented Sep 24, 2017

I was thinking of returning owned Vec<Diagnostics> upwards, but use the Arc-Mutex only to share data across the RLS and rustc threads.

@Xanewok
Copy link
Member

Xanewok commented Sep 25, 2017

Looking at rust-lang/rust#18579 now, should the Diagnostics be in the save-analysis data also?

@nrc
Copy link
Member Author

nrc commented Sep 29, 2017

I don't think they should - we have the information in JSON form, and they are a different kind of data made in a different place in the compiler, so there doesn't seem to be much benefit in combining them for now.

@nrc nrc removed this from the Rustup milestone Oct 30, 2017
@nrc nrc changed the title Don't serialise error and save-analysis data Don't serialise error data Oct 30, 2017
@Xanewok
Copy link
Member

Xanewok commented Oct 30, 2017

I worked mostly on the rls-analysis front to support multiple packages, but will get back to in a free moment.
If someone wants to work on this before I get to it, ping me

@Xanewok Xanewok assigned Xanewok and unassigned nrc Oct 30, 2017
@ishitatsuyuki
Copy link
Contributor

Bump: RLS sets RUSTFLAGS just because this, and is causing rebuild for me.

@Xanewok
Copy link
Member

Xanewok commented Mar 2, 2019

As a note, if we decide to compile out-of-process this wouldn't be a problem anymore.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants