Repository navigation
Commit 7860c84
authored
Share location type strings in memory (#2947)
Memoize location documentation strings to make sure descriptions for
equal types in a single summary are shared in memory.
Motivated by
usethesource/rascal-language-servers#1202,
@DavyLandman and I did an inspection of memory use in Rascal LSP. There
are many duplicate strings in summaries.1 parent 79680e7 commit 7860c84
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | | - | |
73 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
74 | 78 | | |
75 | 79 | | |
76 | 80 | | |
| |||
0 commit comments