Commit graph

1733 commits

Author SHA1 Message Date
quardbreak
0bc598a459
Fix homepage links for dmdoc and interval-tree (#301) 2021-12-27 12:34:40 -08:00
Tad Hardesty
0ec49aa113 Bump dm-langserver to v1.5.1 for minor release 2021-12-18 16:52:57 -08:00
Tad Hardesty
f99b009a1c Run cargo update 2021-12-18 16:51:36 -08:00
Tad Hardesty
11d720000c Hide setup time if it's less than 1ms 2021-12-04 20:08:06 -08:00
Tad Hardesty
4d12ef5bf0 Run dreamchecker from the language server in a background thread 2021-12-04 19:58:45 -08:00
Tad Hardesty
e79c86ad58 Split diagnostics into their own method 2021-12-04 19:38:25 -08:00
Tad Hardesty
7aa2439422 Populate find-all-references table in a background thread
This hovers around 0.57s on my system, which will now be deducted from
the total time to load the environment.
2021-12-04 17:58:53 -08:00
Tad Hardesty
456e8f472a Reserve space for 16k types to save on reallocs 2021-12-04 17:18:45 -08:00
Tad Hardesty
0647969685 Store an index rather than a copy for a type's name 2021-12-04 17:18:31 -08:00
Tad Hardesty
af9f0ec238 Comment out or suppress warnings for unused fields 2021-12-04 16:28:52 -08:00
Tad Hardesty
9e42d0038e Move SymbolIdSource into ObjectTreeBuilder 2021-12-04 16:27:38 -08:00
Tad Hardesty
8b47ea8147 Reserve 1 instead of 4 ProcValue entries for most procs 2021-12-04 16:16:59 -08:00
Tad Hardesty
f82df10f80 Split dap_types module into its own crate 2021-11-28 16:12:57 -08:00
Tad Hardesty
b93a7e1cd3 Update release scripts for restructure 2021-11-21 23:37:29 -08:00
Tad Hardesty
8c9b6b19c1 Fix buffer_file setting the capacity too low
Doesn't really impact idle memory usage, but it's more correct this way.
2021-11-21 20:42:06 -08:00
Tad Hardesty
43eabde619 Default #define stack capacity to 1 instead of 4 2021-11-21 20:34:44 -08:00
Tad Hardesty
3a326ec195 Remove unused enable_procs call from dmm-tools-cli 2021-11-21 20:08:34 -08:00
Tad Hardesty
3c83e513b2 Use Box<[T]> for ProcValue::parameters 2021-11-21 03:29:21 -08:00
Tad Hardesty
f2345b6c1f Store only presence/absence of code rather than builtin/invalid flag 2021-11-21 03:21:09 -08:00
Tad Hardesty
3682e04389 Remove unused DMError from objtree::Code 2021-11-21 02:46:01 -08:00
Tad Hardesty
f641186e01 Compress the Constant enum from 136 to 32 bytes 2021-11-21 02:46:01 -08:00
Tad Hardesty
c5b5fb0ca8 Use Box<str> in Term::InterpString and Call
Reduces sizeof(Term) to 40 (5 pointers).

Linux-gnu langserver idle on /tg/station13 is about 464 MiB.
2021-11-20 18:30:13 -08:00
Tad Hardesty
0ebd024795 Merge NewType enum into Term and split out MiniExpr
Reduces sizeof(Term) to 48 bytes (6 pointers).
2021-11-20 18:10:53 -08:00
Tad Hardesty
7733d2fc58 Replace Vec<T> with Box<[T]> in Term 2021-11-20 17:37:49 -08:00
Tad Hardesty
5f7cfb2d76 Reduce the size of Statement::DoWhile and Setting 2021-11-20 17:29:51 -08:00
Tad Hardesty
40fef0ecb3 Box the body of Statement::ForList 2021-11-20 17:26:15 -08:00
Tad Hardesty
3caa439608 Box the body of Statement::ForRange 2021-11-20 17:20:37 -08:00
Tad Hardesty
f4df33bbcd Split part of ObjectTree's API into new ObjectTreeBuilder 2021-11-20 16:13:59 -08:00
Tad Hardesty
877c1f61e8 Add missing entries to BinaryOp<->AssignOp table 2021-11-18 18:11:32 -08:00
Tad Hardesty
2fd99f9b4f Remove use of IndexMap from the AST and parser
Simplifying Prefab reduces its size and therefore very slightly improves
memory usage, but more importantly it's simpler.
2021-11-18 17:41:43 -08:00
Tad Hardesty
b797360dfa Combine follows and unary operators into one list
Reduces sizeof(Expression) from 48 to 32 bytes.

Reduces /tg/station13 langserver idle from ~537 MiB to ~508 MiB.
2021-11-18 17:29:24 -08:00
Tad Hardesty
7340015fca Reorganize ast.rs 2021-11-18 16:59:14 -08:00
Tad Hardesty
e4c8a23605 Reduce the size of Follow 2021-11-16 23:21:30 -08:00
Tad Hardesty
c37eafedfe Use a boxed slice for TreePath and VarType 2021-11-16 23:11:45 -08:00
Tad Hardesty
6dc339887a Reduce the size of Expression 2021-11-16 22:46:51 -08:00
Tad Hardesty
ce0345efc0 Remove Constant::Int in favor of Constant::Float 2021-11-16 19:20:21 -08:00
Tad Hardesty
a065878680 Roll some outdated dependencies forward 2021-11-16 18:30:37 -08:00
Tad Hardesty
8099dca592 Run cargo update 2021-11-16 18:30:37 -08:00
Tad Hardesty
4ea1dfca0d Update root and crates/ readmes 2021-11-16 18:30:37 -08:00
Tad Hardesty
592a8c2aa8 Move crate code into src/ subdirectories 2021-11-16 18:30:37 -08:00
Tad Hardesty
46dd4174f5 Rename src/ to crates/, match directories to package names 2021-11-16 17:51:02 -08:00
LatteKat
eb667c3874
Use IndexMap instead of LinkedHashMap, switch hasher to AHash (#293)
AHash is straight up faster for string hashing. IndexMap is at least 
maintained and has methods that we use, also faster iteration.
2021-11-16 17:31:14 -08:00
igorsaux
7498fd08c8
Fix auxtools cfg bundling misspelling (#297)
Found this misspelling which leads to not bundling auxtools lib at all.
2021-11-08 18:44:25 -08:00
Tad Hardesty
90037b4768 Include new ident.field() in Find All References
Fixes #294.
2021-10-31 19:43:34 -07:00
igorsaux
04c790941f
Fix directive misspelling (#292)
Entry `var_in_proc_parameter = "error"` in config don't work because of 
this.
2021-10-24 20:29:43 -07:00
Azrun
1f2c588d3b
Add /particle/var/fadein builtin (#290)
It just appeared one day? 🤷
Unsure what version it appeared in. 
https://secure.byond.com/docs/ref/info.html#/{notes}/particles

Feature Request:
https://www.byond.com/forum/post/2653860

Lummox has mentioned working on it in a number of posts...
2021-09-28 21:19:56 -07:00
Pieter-Jan Briers
7bff6f7122
Handle files with BOM in lexer (#285)
This came up in OpenDream (blame VS...). Figured it wouldn't be too 
hard to fix here.
2021-09-18 15:15:59 -07:00
Tad Hardesty
78bf0eef4f Fix release .sha256 file including itself 2021-09-08 23:54:50 -07:00
spookydonut
a8aedd733e Bump versions for minor release 2021-09-08 16:17:15 +08:00
Letter N
521233aa0d
Set fonts for dmdoc (#278)
Uses a less "sharp" font. All the contents will be using Arial while 
code blocks will use Consolas.

Co-authored-by: Tad Hardesty <tad@platymuus.com>

Add fallback font chains.
2021-08-26 21:15:43 -07:00