{"action":"created","issue":{"url":"https://api.github.com/repos/jmcnamara/excel-writer-xlsx/issues/175","repository_url":"https://api.github.com/repos/jmcnamara/excel-writer-xlsx","labels_url":"https://api.github.com/repos/jmcnamara/excel-writer-xlsx/issues/175/labels{/name}","comments_url":"https://api.github.com/repos/jmcnamara/excel-writer-xlsx/issues/175/comments","events_url":"https://api.github.com/repos/jmcnamara/excel-writer-xlsx/issues/175/events","html_url":"https://github.com/jmcnamara/excel-writer-xlsx/issues/175","id":180871907,"node_id":"MDU6SXNzdWUxODA4NzE5MDc=","number":175,"title":"Too many open files when using set_optimization()","user":{"login":"sskopnik","id":22615212,"node_id":"MDQ6VXNlcjIyNjE1MjEy","avatar_url":"https://avatars2.githubusercontent.com/u/22615212?v=4","gravatar_id":"","url":"https://api.github.com/users/sskopnik","html_url":"https://github.com/sskopnik","followers_url":"https://api.github.com/users/sskopnik/followers","following_url":"https://api.github.com/users/sskopnik/following{/other_user}","gists_url":"https://api.github.com/users/sskopnik/gists{/gist_id}","starred_url":"https://api.github.com/users/sskopnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sskopnik/subscriptions","organizations_url":"https://api.github.com/users/sskopnik/orgs","repos_url":"https://api.github.com/users/sskopnik/repos","events_url":"https://api.github.com/users/sskopnik/events{/privacy}","received_events_url":"https://api.github.com/users/sskopnik/received_events","type":"User","site_admin":false},"labels":[{"id":13056796,"node_id":"MDU6TGFiZWwxMzA1Njc5Ng==","url":"https://api.github.com/repos/jmcnamara/excel-writer-xlsx/labels/question","name":"question","color":"d7e102","default":true}],"state":"open","locked":false,"assignee":{"login":"jmcnamara","id":94267,"node_id":"MDQ6VXNlcjk0MjY3","avatar_url":"https://avatars3.githubusercontent.com/u/94267?v=4","gravatar_id":"","url":"https://api.github.com/users/jmcnamara","html_url":"https://github.com/jmcnamara","followers_url":"https://api.github.com/users/jmcnamara/followers","following_url":"https://api.github.com/users/jmcnamara/following{/other_user}","gists_url":"https://api.github.com/users/jmcnamara/gists{/gist_id}","starred_url":"https://api.github.com/users/jmcnamara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmcnamara/subscriptions","organizations_url":"https://api.github.com/users/jmcnamara/orgs","repos_url":"https://api.github.com/users/jmcnamara/repos","events_url":"https://api.github.com/users/jmcnamara/events{/privacy}","received_events_url":"https://api.github.com/users/jmcnamara/received_events","type":"User","site_admin":false},"assignees":[{"login":"jmcnamara","id":94267,"node_id":"MDQ6VXNlcjk0MjY3","avatar_url":"https://avatars3.githubusercontent.com/u/94267?v=4","gravatar_id":"","url":"https://api.github.com/users/jmcnamara","html_url":"https://github.com/jmcnamara","followers_url":"https://api.github.com/users/jmcnamara/followers","following_url":"https://api.github.com/users/jmcnamara/following{/other_user}","gists_url":"https://api.github.com/users/jmcnamara/gists{/gist_id}","starred_url":"https://api.github.com/users/jmcnamara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmcnamara/subscriptions","organizations_url":"https://api.github.com/users/jmcnamara/orgs","repos_url":"https://api.github.com/users/jmcnamara/repos","events_url":"https://api.github.com/users/jmcnamara/events{/privacy}","received_events_url":"https://api.github.com/users/jmcnamara/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2016-10-04T11:50:34Z","updated_at":"2018-11-12T15:37:49Z","closed_at":null,"author_association":"NONE","body":"I'm creating a lot of XLSX-Files, so to speed things up a bit I use set_optimization(). I'm doing a proper\n$workbook->close() after creating every file. In my TEMP-Dir (Windows 7 machine) there are created a lot of temp files. These files seem to be kept open during the hole process (can't access via editor) although I'm doing a $workbook->close() after each file creation. After some time (Hours...) my script reaches the magic limit of 2048 open temp files and crashes ;-(\nAny help? Maybe \"Don't use set_optimization()\" ?\n"},"comment":{"url":"https://api.github.com/repos/jmcnamara/excel-writer-xlsx/issues/comments/437925753","html_url":"https://github.com/jmcnamara/excel-writer-xlsx/issues/175#issuecomment-437925753","issue_url":"https://api.github.com/repos/jmcnamara/excel-writer-xlsx/issues/175","id":437925753,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNzkyNTc1Mw==","user":{"login":"tedchuang","id":967513,"node_id":"MDQ6VXNlcjk2NzUxMw==","avatar_url":"https://avatars0.githubusercontent.com/u/967513?v=4","gravatar_id":"","url":"https://api.github.com/users/tedchuang","html_url":"https://github.com/tedchuang","followers_url":"https://api.github.com/users/tedchuang/followers","following_url":"https://api.github.com/users/tedchuang/following{/other_user}","gists_url":"https://api.github.com/users/tedchuang/gists{/gist_id}","starred_url":"https://api.github.com/users/tedchuang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tedchuang/subscriptions","organizations_url":"https://api.github.com/users/tedchuang/orgs","repos_url":"https://api.github.com/users/tedchuang/repos","events_url":"https://api.github.com/users/tedchuang/events{/privacy}","received_events_url":"https://api.github.com/users/tedchuang/received_events","type":"User","site_admin":false},"created_at":"2018-11-12T15:37:49Z","updated_at":"2018-11-12T15:37:49Z","author_association":"NONE","body":"Do you think this will work?\r\n\r\n1. use $ENV{'TEMP'} to find which is the temp directory\r\n2. use readdir to get all files in temp\r\n3. use regex to get files10-characters long, no file extension\r\n4. use unlink after worksheet close to remove all temp files\r\n\r\nNot the most elegant way of doing things..."}}
{"actor":{"display_login":"tedchuang"}}