mirror of
https://github.com/open-goal/jak-project.git
synced 2024-10-20 21:27:52 -04:00
cc8801a27b
I noticed that jak 3's compilation was spending a lot of time accessing the `unordered_map`s we use to store constants and symbol types. I repurposed the `EnvironmentMap` originally made for GOOS for this. It turns out that we were copying the entire constant map whenever we encountered a `deftype`, and fixed that too. This speeds up jak3 compiles from ~16 to 11 seconds for me. |
||
---|---|---|
.. | ||
Interpreter.cpp | ||
Interpreter.h | ||
Object.cpp | ||
Object.h | ||
ParseHelpers.cpp | ||
ParseHelpers.h | ||
PrettyPrinter.cpp | ||
PrettyPrinter.h | ||
PrettyPrinter2.cpp | ||
PrettyPrinter2.h | ||
Printer.cpp | ||
Printer.h | ||
Reader.cpp | ||
Reader.h | ||
TextDB.cpp | ||
TextDB.h |