{"action":"created","issue":{"url":"https://api.github.com/repos/librosa/librosa/issues/681","repository_url":"https://api.github.com/repos/librosa/librosa","labels_url":"https://api.github.com/repos/librosa/librosa/issues/681/labels{/name}","comments_url":"https://api.github.com/repos/librosa/librosa/issues/681/comments","events_url":"https://api.github.com/repos/librosa/librosa/issues/681/events","html_url":"https://github.com/librosa/librosa/issues/681","id":299325798,"number":681,"title":"librosa becomes slower the longer it runs","user":{"login":"albertz","id":59132,"avatar_url":"https://avatars0.githubusercontent.com/u/59132?v=4","gravatar_id":"","url":"https://api.github.com/users/albertz","html_url":"https://github.com/albertz","followers_url":"https://api.github.com/users/albertz/followers","following_url":"https://api.github.com/users/albertz/following{/other_user}","gists_url":"https://api.github.com/users/albertz/gists{/gist_id}","starred_url":"https://api.github.com/users/albertz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albertz/subscriptions","organizations_url":"https://api.github.com/users/albertz/orgs","repos_url":"https://api.github.com/users/albertz/repos","events_url":"https://api.github.com/users/albertz/events{/privacy}","received_events_url":"https://api.github.com/users/albertz/received_events","type":"User","site_admin":false},"labels":[{"id":16995038,"url":"https://api.github.com/repos/librosa/librosa/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-22T11:58:49Z","updated_at":"2018-02-22T13:07:36Z","closed_at":null,"author_association":"NONE","body":"<!--\r\nIf your issue is a usage question, submit it our Google Group instead: \r\nhttps://groups.google.com/forum/#!forum/librosa\r\n-->\r\n\r\n<!-- Instructions For Filing a Bug: https://github.com/librosa/librosa/blob/master/CONTRIBUTING.md#filing-bugs -->\r\n\r\n#### Description\r\nMy code is basically:\r\n\r\n```\r\nfor fn in lots_of_flac_files:\r\n  audio, sample_rate = librosa.load(fn, sr=None)\r\n  mfccs = librosa.feature.mfcc(\r\n    audio, sr=sample_rate,\r\n    n_mfcc=40,\r\n    hop_length=int(0.01 * sample_rate), n_fft=int(0.025 * sample_rate))\r\n```\r\n\r\nAll files are about the same length. I added some simple code to estimate the remaining time.\r\nThe strange thing is that this estimation did not went down, but went up only in the beginning, i.e. it became slower and slower. How could that be?\r\nAlso, I noticed that the memory consumption seems to slowly increase all the time.\r\n\r\n\r\n#### Expected Results\r\nEvery call to `load` and `mfcc` takes about the same time.\r\n\r\n#### Actual Results\r\nThe time to execute `load` and `mfcc` always increases. (Maybe only one of them; I didn't tested.)\r\n\r\n#### Versions\r\n\r\n```\r\n>>> import platform; print(platform.platform())\r\nLinux-4.9.0-3-amd64-x86_64-with-debian-9.3\r\n>>> import sys; print(\"Python\", sys.version)\r\nPython 3.5.3 (default, Jan 19 2017, 14:11:04) \r\n[GCC 6.3.0 20170118]\r\n>>> import numpy; print(\"NumPy\", numpy.__version__)\r\nNumPy 1.14.1\r\n>>> import scipy; print(\"SciPy\", scipy.__version__)\r\nSciPy 1.0.0\r\n>>> import librosa; print(\"librosa\", librosa.__version__)\r\nlibrosa 0.6.0\r\n>>> \r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/librosa/librosa/issues/comments/367675028","html_url":"https://github.com/librosa/librosa/issues/681#issuecomment-367675028","issue_url":"https://api.github.com/repos/librosa/librosa/issues/681","id":367675028,"user":{"login":"albertz","id":59132,"avatar_url":"https://avatars0.githubusercontent.com/u/59132?v=4","gravatar_id":"","url":"https://api.github.com/users/albertz","html_url":"https://github.com/albertz","followers_url":"https://api.github.com/users/albertz/followers","following_url":"https://api.github.com/users/albertz/following{/other_user}","gists_url":"https://api.github.com/users/albertz/gists{/gist_id}","starred_url":"https://api.github.com/users/albertz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albertz/subscriptions","organizations_url":"https://api.github.com/users/albertz/orgs","repos_url":"https://api.github.com/users/albertz/repos","events_url":"https://api.github.com/users/albertz/events{/privacy}","received_events_url":"https://api.github.com/users/albertz/received_events","type":"User","site_admin":false},"created_at":"2018-02-22T13:07:36Z","updated_at":"2018-02-22T13:07:36Z","author_association":"NONE","body":"@bmcfee Is this a question? I would say this is a serious bug."}}
{"actor":{"display_login":"albertz"}}