{"action":"created","issue":{"url":"https://api.github.com/repos/Theano/libgpuarray/issues/66","labels_url":"https://api.github.com/repos/Theano/libgpuarray/issues/66/labels{/name}","comments_url":"https://api.github.com/repos/Theano/libgpuarray/issues/66/comments","events_url":"https://api.github.com/repos/Theano/libgpuarray/issues/66/events","html_url":"https://github.com/Theano/libgpuarray/issues/66","id":99707829,"number":66,"title":"lfu_cache purges most-recently added items","user":{"login":"davidweichiang","id":1399913,"avatar_url":"https://avatars.githubusercontent.com/u/1399913?v=3","gravatar_id":"","url":"https://api.github.com/users/davidweichiang","html_url":"https://github.com/davidweichiang","followers_url":"https://api.github.com/users/davidweichiang/followers","following_url":"https://api.github.com/users/davidweichiang/following{/other_user}","gists_url":"https://api.github.com/users/davidweichiang/gists{/gist_id}","starred_url":"https://api.github.com/users/davidweichiang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidweichiang/subscriptions","organizations_url":"https://api.github.com/users/davidweichiang/orgs","repos_url":"https://api.github.com/users/davidweichiang/repos","events_url":"https://api.github.com/users/davidweichiang/events{/privacy}","received_events_url":"https://api.github.com/users/davidweichiang/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-07T18:56:34Z","updated_at":"2015-08-11T00:47:54Z","closed_at":"2015-08-10T19:46:21Z","body":"Hi, even after patch #65, I find that `lfu_cache` is still causing too many kernel recompiles. The reason seems to be that when an item is ejected from the cache, its count is also reset. When an item is added, its count is therefore 1, and is liable to get ejected again right away. However, I don't know the most appropriate fix -- perhaps an LRU policy instead?\r\n"},"comment":{"url":"https://api.github.com/repos/Theano/libgpuarray/issues/comments/129659224","html_url":"https://github.com/Theano/libgpuarray/issues/66#issuecomment-129659224","issue_url":"https://api.github.com/repos/Theano/libgpuarray/issues/66","id":129659224,"user":{"login":"nouiz","id":180987,"avatar_url":"https://avatars.githubusercontent.com/u/180987?v=3","gravatar_id":"","url":"https://api.github.com/users/nouiz","html_url":"https://github.com/nouiz","followers_url":"https://api.github.com/users/nouiz/followers","following_url":"https://api.github.com/users/nouiz/following{/other_user}","gists_url":"https://api.github.com/users/nouiz/gists{/gist_id}","starred_url":"https://api.github.com/users/nouiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nouiz/subscriptions","organizations_url":"https://api.github.com/users/nouiz/orgs","repos_url":"https://api.github.com/users/nouiz/repos","events_url":"https://api.github.com/users/nouiz/events{/privacy}","received_events_url":"https://api.github.com/users/nouiz/received_events","type":"User","site_admin":false},"created_at":"2015-08-11T00:47:54Z","updated_at":"2015-08-11T00:47:54Z","body":"Just to be sure, that isn't in the short term plan, so if you need a quick\nfix, you could make something at the python level and we would accept that.\n\nOn Mon, Aug 10, 2015 at 3:38 PM, abergeron <notifications@github.com> wrote:\n\n> The plan was/is to add a cache at the C level to try to avoid kernel\n> recompiles. But making a cache in C is much harder.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/Theano/libgpuarray/issues/66#issuecomment-129578590>.\n>\n"}}