mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-05 12:21:52 -04:00
Cache #load data and hashes
This commit is contained in:
1 parent
38102f14c1
commit
a054c2934e
3 files changed
+147
-120
No files matched your search
@@ -1170,6 +1170,8 @@ void init_checker_info(CheckerInfo *i) {
|
||||
|
||||
mutex_init(&i->objc_types_mutex);
|
||||
map_init(&i->objc_msgSend_types, a);
|
||||
mutex_init(&i->load_file_mutex);
|
||||
string_map_init(&i->load_file_cache, a);
|
||||
}
|
||||
|
||||
void destroy_checker_info(CheckerInfo *i) {
|
||||
@@ -1205,6 +1207,8 @@ void destroy_checker_info(CheckerInfo *i) {
|
||||
|
||||
mutex_destroy(&i->objc_types_mutex);
|
||||
map_destroy(&i->objc_msgSend_types);
|
||||
mutex_init(&i->load_file_mutex);
|
||||
string_map_destroy(&i->load_file_cache);
|
||||
}
|
||||
|
||||
CheckerContext make_checker_context(Checker *c) {
|
||||
|
||||
Reference in new issue
Block a user