Replies: 1 comment 3 replies
-
Thank you, I will take a look at that! I thought I had remembered seeing something like it, but wasn't finding it again in the docs when I reviewed. I'll at least create a branch to prototype using it. I initially built this out with namedtuples to try for more stability, but the performance was rather bad. One open question that will need a little thought is the compilation overhead - will the structref's methods be JITed at import time, or lazily when used? The predecessor to this package was a jitclass in LensKit itself, and the overhead of compiling the jitclass with methods at import time caused some obnoxious performance hits in multiprocessing code that didn't use it. I jumped through some weird hoops to fix that, and am addressing it here by having the jitclass not actually have any methods to speak of. |
Beta Was this translation helpful? Give feedback.
-
hi @mdekstrand , I googled numba csr and this showed up, 18 hours after creation. what a nice coincidence! Thanks for sharing this library.
I see you based this on jitclasses. They will be eventually replaced by the new StructRef (https://numba.pydata.org/numba-doc/dev/extending/high-level.html#implementing-mutable-structures). If you are starting a new library maybe it makes sense to base it on those. Jitclasses won't go away any time soon, so it's also fine to keep it as it is.
Cheers,
Luk
Beta Was this translation helpful? Give feedback.
All reactions