You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Used functools.cache to cache filter_string property
Fixed docstring of filter_string property.
Introduced internal dpctl._sycl_device._cached_filter_string stand-alone
function that is decorated with functools.cache
Used that internal function in implementation of
dpctl.SyclDevice.filter_string.
Caching improved timing of filter_string property:
```
In [1]: import dpctl
In [2]: d = dpctl.SyclDevice()
In [3]: %timeit d.filter_string
2.31 µs ± 42.7 ns per loop (mean ± std. dev. of 7 runs, 100,000 loops each)
```
Previously, the timing was around `200 ms`.
0 commit comments