Skip to content
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

Dispatcher/caching rewrite to address performance regression #912

Merged
merged 2 commits into from
Feb 17, 2023

Commits on Feb 16, 2023

  1. (1)moved function hash computation to kernel and func __init__ from c…

    …aching.build_key(). This avoids computing hash on every call. (2) moved argtypes list building logic to func.py and dispatcher. Again, avoids list building on every call; (3) Rewrote build_key to take variable args and return tuple. (4) Removed unnecessary call to LRUCache.get() inside LRUCache.put()
    adarshyoga committed Feb 16, 2023
    Configuration menu
    Copy the full SHA
    e11c86d View commit details
    Browse the repository at this point in the history
  2. (1) moving function hash creation, build key and USM metadata strippi…

    …ng functions to a separate cache utils. (2) added docstrings. (3) Replaced get() with explicit logic to update list in LRUCache
    adarshyoga committed Feb 16, 2023
    Configuration menu
    Copy the full SHA
    1056a58 View commit details
    Browse the repository at this point in the history