{"action":"created","issue":{"url":"https://api.github.com/repos/alecthomas/entityx/issues/68","labels_url":"https://api.github.com/repos/alecthomas/entityx/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/alecthomas/entityx/issues/68/comments","events_url":"https://api.github.com/repos/alecthomas/entityx/issues/68/events","html_url":"https://github.com/alecthomas/entityx/issues/68","id":51046016,"number":68,"title":"Structure of Arrays Components and Custom Allocator Support","user":{"login":"excaliburHisSheath","id":1900829,"avatar_url":"https://avatars.githubusercontent.com/u/1900829?v=3","gravatar_id":"","url":"https://api.github.com/users/excaliburHisSheath","html_url":"https://github.com/excaliburHisSheath","followers_url":"https://api.github.com/users/excaliburHisSheath/followers","following_url":"https://api.github.com/users/excaliburHisSheath/following{/other_user}","gists_url":"https://api.github.com/users/excaliburHisSheath/gists{/gist_id}","starred_url":"https://api.github.com/users/excaliburHisSheath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/excaliburHisSheath/subscriptions","organizations_url":"https://api.github.com/users/excaliburHisSheath/orgs","repos_url":"https://api.github.com/users/excaliburHisSheath/repos","events_url":"https://api.github.com/users/excaliburHisSheath/events{/privacy}","received_events_url":"https://api.github.com/users/excaliburHisSheath/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/alecthomas/entityx/labels/discussion","name":"discussion","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2014-12-04T23:54:04Z","updated_at":"2015-09-11T21:06:09Z","closed_at":null,"body":"I've been looking at entityx and it seems like a great library, thanks for makings such a great library :+1: .\r\n\r\nIs there any plan/desire to add support for defining components as a struct of arrays (as opposed to making them arrays of structs as they are now)? I'm thinking something along the lines of what's described in [this BitSquid post](http://bitsquid.blogspot.com/2014/09/building-data-oriented-entity-system.html) and the one before it.\r\n\r\nHand-in-hand with that goes custom allocator support. I know entityx already uses memory pools to keep cache coherency, but is there any way to provide your own allocation scheme to be used? I'll admit that I haven't looked too much into whether this option is already available, but it would be necessary to allow struct-of-array type components.\r\n\r\nThanks again for your hard work on entityx."},"comment":{"url":"https://api.github.com/repos/alecthomas/entityx/issues/comments/139661297","html_url":"https://github.com/alecthomas/entityx/issues/68#issuecomment-139661297","issue_url":"https://api.github.com/repos/alecthomas/entityx/issues/68","id":139661297,"user":{"login":"waldnercharles","id":1673181,"avatar_url":"https://avatars.githubusercontent.com/u/1673181?v=3","gravatar_id":"","url":"https://api.github.com/users/waldnercharles","html_url":"https://github.com/waldnercharles","followers_url":"https://api.github.com/users/waldnercharles/followers","following_url":"https://api.github.com/users/waldnercharles/following{/other_user}","gists_url":"https://api.github.com/users/waldnercharles/gists{/gist_id}","starred_url":"https://api.github.com/users/waldnercharles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waldnercharles/subscriptions","organizations_url":"https://api.github.com/users/waldnercharles/orgs","repos_url":"https://api.github.com/users/waldnercharles/repos","events_url":"https://api.github.com/users/waldnercharles/events{/privacy}","received_events_url":"https://api.github.com/users/waldnercharles/received_events","type":"User","site_admin":false},"created_at":"2015-09-11T21:06:09Z","updated_at":"2015-09-11T21:06:09Z","body":"Does entityx currently not support any form of cache coherency? (in compile_time branch or master)\r\n\r\neg. When deleting an entity does it swap the deleted entity and its corresponding components with the last known valid entity / components? (swap would be the wrong term, more like, overwrite.)"}}