diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-03-24 07:11:28 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2021-03-24 07:11:28 +0000 |
commit | 3e8f13d2748edc176328706a338c76c0c3e4c61b (patch) | |
tree | ad357404a5110c75d413f4908255049aa4dcbfdf /crates/hir_ty/src/lib.rs | |
parent | d702f10fb345637e82f3fb9606f5aba243df5365 (diff) | |
parent | a2950fcb052b624c8971f668d61e70c176defe99 (diff) |
Merge #8182
8182: Trim down IPC json size r=edwin0cheng a=edwin0cheng
This PR try to trim down the json of proc macro IPC by ignore token id if it equals to `TokenId::unspecifed`.
Test by following commands:
```bash
$ git clone https://github.com/gluon-lang/lsp-types.git
$ export RA_LOG="proc_macro_api=debug"
$ rust-analyzer -q analysis-stats --load-output-dirs --with-proc-macro . 2> debug.log
$ cat debug.log | awk '/^\[DEBUG proc_macro_api::msg\] >/ {print substr($0,31)}' >expand.log
$ stat -c "%s" expand.log
```
Before: 37576726
After: 28551718
So it trimed down 75%.
bors r+
Co-authored-by: Edwin Cheng <[email protected]>
Diffstat (limited to 'crates/hir_ty/src/lib.rs')
0 files changed, 0 insertions, 0 deletions