{"action":"opened","issue":{"url":"https://api.github.com/repos/bashia/MarkovTunes/issues/6","labels_url":"https://api.github.com/repos/bashia/MarkovTunes/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/bashia/MarkovTunes/issues/6/comments","events_url":"https://api.github.com/repos/bashia/MarkovTunes/issues/6/events","html_url":"https://github.com/bashia/MarkovTunes/issues/6","id":67494098,"number":6,"title":"Filesystem is too heavily relied upon.","user":{"login":"bashia","id":599302,"avatar_url":"https://avatars.githubusercontent.com/u/599302?v=3","gravatar_id":"","url":"https://api.github.com/users/bashia","html_url":"https://github.com/bashia","followers_url":"https://api.github.com/users/bashia/followers","following_url":"https://api.github.com/users/bashia/following{/other_user}","gists_url":"https://api.github.com/users/bashia/gists{/gist_id}","starred_url":"https://api.github.com/users/bashia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bashia/subscriptions","organizations_url":"https://api.github.com/users/bashia/orgs","repos_url":"https://api.github.com/users/bashia/repos","events_url":"https://api.github.com/users/bashia/events{/privacy}","received_events_url":"https://api.github.com/users/bashia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-10T02:40:22Z","updated_at":"2015-04-10T02:40:22Z","closed_at":null,"body":"Filesystem reads and writes take a long time and can pose problems for concurrent operations. The following cases should be dealt with before we release this application.\r\n\r\n- When a user uploads a file, it is stored in markovtunes/blarg.wav and then subsequently used in model generation. The aubio comprehension of the wav file is kept in markovtunes/blarg.txt. The aubio text output could be persisted in a database or discarded entirely once the information needed from it is extracted. Blarg.wav is important for re-constructing songs, but could posssibly be kept in session-independent locations.\r\n\r\n- The persisted pickled Markov model objects are kept in markovmodel/markovmodel.p. The text data of this file could be kept in a database instead.\r\n\r\n- The products of melody generation are kept in markovtunes/chopped.wav. These should instead be kept in memory and written directly into the responses to the client."}}