aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_ty/src/tests/traits.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-03-24 07:11:28 +0000
committerGitHub <[email protected]>2021-03-24 07:11:28 +0000
commit3e8f13d2748edc176328706a338c76c0c3e4c61b (patch)
treead357404a5110c75d413f4908255049aa4dcbfdf /crates/hir_ty/src/tests/traits.rs
parentd702f10fb345637e82f3fb9606f5aba243df5365 (diff)
parenta2950fcb052b624c8971f668d61e70c176defe99 (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/tests/traits.rs')
0 files changed, 0 insertions, 0 deletions