{"action":"closed","issue":{"url":"https://api.github.com/repos/amnuts/opcache-gui/issues/11","repository_url":"https://api.github.com/repos/amnuts/opcache-gui","labels_url":"https://api.github.com/repos/amnuts/opcache-gui/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/amnuts/opcache-gui/issues/11/comments","events_url":"https://api.github.com/repos/amnuts/opcache-gui/issues/11/events","html_url":"https://github.com/amnuts/opcache-gui/issues/11","id":135747331,"number":11,"title":"Slow filter refresh","user":{"login":"VinWz","id":3620353,"avatar_url":"https://avatars.githubusercontent.com/u/3620353?v=3","gravatar_id":"","url":"https://api.github.com/users/VinWz","html_url":"https://github.com/VinWz","followers_url":"https://api.github.com/users/VinWz/followers","following_url":"https://api.github.com/users/VinWz/following{/other_user}","gists_url":"https://api.github.com/users/VinWz/gists{/gist_id}","starred_url":"https://api.github.com/users/VinWz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VinWz/subscriptions","organizations_url":"https://api.github.com/users/VinWz/orgs","repos_url":"https://api.github.com/users/VinWz/repos","events_url":"https://api.github.com/users/VinWz/events{/privacy}","received_events_url":"https://api.github.com/users/VinWz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-02-23T14:10:35Z","updated_at":"2016-02-24T00:33:07Z","closed_at":"2016-02-24T00:33:07Z","body":"Hello Amnuts and thank you for this nice contribution!\r\n\r\nI was wondering if there is any good alternative to keyup() in this case.\r\n\r\n```\r\n        $('#frmFilter').bind('keyup', function(event){\r\n            $('span.pathname').each(function(index){\r\n                if ($(this).text().toLowerCase().indexOf($('#frmFilter').val().toLowerCase()) == -1) {\r\n                    $(this).closest('tr').addClass('hide');\r\n                } else {\r\n                    $(this).closest('tr').removeClass('hide');\r\n                }\r\n            });\r\n            $('#filelist table tbody').trigger('paint');\r\n        });\r\n```\r\nIndeed, while dealing with large amounts of paths, I'd rather it refresh the filtered entries only if both the filter field has changed and there has not been a keyup event for the last second or so.\r\nThe letter-by-letter refresh is taking a long time (since it freezes the input field) for only about 5k paths on a quite powerful laptop with Chrome.\r\n\r\nBest regards!"}}