Skip to content

Instantly share code, notes, and snippets.

View dlee992's full-sized avatar

Da Li dlee992

  • Greater Chicago Area
  • 16:29 (UTC -06:00)
View GitHub Profile
@dlee992
dlee992 / caching.py
Created August 31, 2023 13:38
caching patch
diff --git a/numba/core/caching.py b/numba/core/caching.py
index a830524acea..1b7eac4ae86 100644
--- a/numba/core/caching.py
+++ b/numba/core/caching.py
@@ -793,7 +793,7 @@ def make_library_cache(prefix):
# list of types for which the cache invalidation is extended to their
# definitions
-dep_types = (types.Dispatcher, types.Function)
+dep_types = (types.Dispatcher, types.Function, types.BoundFunction)
@dlee992
dlee992 / _std_string.cpp
Created September 8, 2022 08:12
replace UnicodeType with std::string
#include <string>
#include "_pymodule.h"
#ifdef __cplusplus
extern "C" {
#endif
void *
std_string_init(char *s, int64_t size) {