{"action":"created","issue":{"url":"https://api.github.com/repos/anthonix/ffts/issues/35","labels_url":"https://api.github.com/repos/anthonix/ffts/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/anthonix/ffts/issues/35/comments","events_url":"https://api.github.com/repos/anthonix/ffts/issues/35/events","html_url":"https://github.com/anthonix/ffts/issues/35","id":61805259,"number":35,"title":"Suggestions for improving performance?","user":{"login":"robclouth","id":1244578,"avatar_url":"https://avatars.githubusercontent.com/u/1244578?v=3","gravatar_id":"","url":"https://api.github.com/users/robclouth","html_url":"https://github.com/robclouth","followers_url":"https://api.github.com/users/robclouth/followers","following_url":"https://api.github.com/users/robclouth/following{/other_user}","gists_url":"https://api.github.com/users/robclouth/gists{/gist_id}","starred_url":"https://api.github.com/users/robclouth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robclouth/subscriptions","organizations_url":"https://api.github.com/users/robclouth/orgs","repos_url":"https://api.github.com/users/robclouth/repos","events_url":"https://api.github.com/users/robclouth/events{/privacy}","received_events_url":"https://api.github.com/users/robclouth/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-15T12:37:17Z","updated_at":"2015-03-15T18:10:18Z","closed_at":null,"body":"Hi,\r\nI've been using this FFT code:\r\nhttp://www.apo33.org/pub/puredata/APO/librairies_PD/recup/paraloeuil_v1_pd/src/d_mayer_fft.c\r\nBut the performance wasn't what I expected so I switched to FFTS. However, I'm finding that FFTS performs slightly worse than this code which is surprising. I'm using it for real-time audio processing for a VST and I ideally would like up to 100 simultaneous 1024 size FFTs running. I can only get 30 at the moment before the cpu gets to 40%, which is too much for an audio plugin.\r\nI'm developing on Windows. I pre-built the lib with cmake. I'm allocating the aligned memory like this:\r\n```\r\n\tstatic void* fft_alloc(int size) {\r\n\t\tfloat FFTS_ALIGN(32) *data = (float*)_aligned_malloc(size, 32);\r\n\t\tmemset(data, 0, size);\r\n\t\treturn data;\r\n\t}\r\n```\r\nAnd this is the method than executes it:\r\n```\r\nvoid FFT::forward_real(int size, const void* in, void* out){\r\n\tinit(size);\r\n\tffts_execute(real_fftPlan, in, out);\r\n}\r\n```\r\n`init(size);` only does anything if the size has changed, so it's not initializing the fft every execution.\r\nAny idea as to what's slowing things down? \r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/anthonix/ffts/issues/comments/81181985","html_url":"https://github.com/anthonix/ffts/issues/35#issuecomment-81181985","issue_url":"https://api.github.com/repos/anthonix/ffts/issues/35","id":81181985,"user":{"login":"robclouth","id":1244578,"avatar_url":"https://avatars.githubusercontent.com/u/1244578?v=3","gravatar_id":"","url":"https://api.github.com/users/robclouth","html_url":"https://github.com/robclouth","followers_url":"https://api.github.com/users/robclouth/followers","following_url":"https://api.github.com/users/robclouth/following{/other_user}","gists_url":"https://api.github.com/users/robclouth/gists{/gist_id}","starred_url":"https://api.github.com/users/robclouth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robclouth/subscriptions","organizations_url":"https://api.github.com/users/robclouth/orgs","repos_url":"https://api.github.com/users/robclouth/repos","events_url":"https://api.github.com/users/robclouth/events{/privacy}","received_events_url":"https://api.github.com/users/robclouth/received_events","type":"User","site_admin":false},"created_at":"2015-03-15T18:10:18Z","updated_at":"2015-03-15T18:10:18Z","body":"No that's wrong. Spoke too soon."}}