-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BoundSymbol constructor to be cached #1576
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1576 +/- ##
===========================================
- Coverage 86.26% 61.47% -24.79%
===========================================
Files 217 180 -37
Lines 31285 20378 -10907
Branches 4155 3519 -636
===========================================
- Hits 26988 12528 -14460
- Misses 3807 7247 +3440
- Partials 490 603 +113
Continue to review full report at Codecov.
|
tests/test_caching.py
Outdated
u._C_symbol | ||
# All u, u(inds) and u.function through u._c_symbol added to cache | ||
assert(len(_SymbolCache) == cache_size + 3) | ||
del u |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's this del
for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as test below force clear cache because its done at the end of the code block not start
bda6cfd
to
f367a6f
Compare
manually triggered CI-gpu: green merging |
Fixes #1575
Switch from
__init_finalize
to__new__
to make sure the extrau.function
is cought by the cache and added extra line toclear_cache
test to test it (breaks on master)