{"action":"created","issue":{"url":"https://api.github.com/repos/leo-project/jerasure/issues/3","labels_url":"https://api.github.com/repos/leo-project/jerasure/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/leo-project/jerasure/issues/3/comments","events_url":"https://api.github.com/repos/leo-project/jerasure/issues/3/events","html_url":"https://github.com/leo-project/jerasure/pull/3","id":127378554,"number":3,"title":"Added no_alloc variant","user":{"login":"windkit","id":360884,"avatar_url":"https://avatars.githubusercontent.com/u/360884?v=3","gravatar_id":"","url":"https://api.github.com/users/windkit","html_url":"https://github.com/windkit","followers_url":"https://api.github.com/users/windkit/followers","following_url":"https://api.github.com/users/windkit/following{/other_user}","gists_url":"https://api.github.com/users/windkit/gists{/gist_id}","starred_url":"https://api.github.com/users/windkit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/windkit/subscriptions","organizations_url":"https://api.github.com/users/windkit/orgs","repos_url":"https://api.github.com/users/windkit/repos","events_url":"https://api.github.com/users/windkit/events{/privacy}","received_events_url":"https://api.github.com/users/windkit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-01-19T06:51:33Z","updated_at":"2016-01-27T08:06:51Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/leo-project/jerasure/pulls/3","html_url":"https://github.com/leo-project/jerasure/pull/3","diff_url":"https://github.com/leo-project/jerasure/pull/3.diff","patch_url":"https://github.com/leo-project/jerasure/pull/3.patch"},"body":"### Description\r\nJErasure Library uses lots of heap allocation for temporary structure.\r\nThe large number of small allocation/deallocation may have performance impact.\r\nWhen used in NIF, some memory issue is encountered (Random Segmentation Fault)\r\n\r\n### Purposed Solution\r\nAdded a separate code path which avoid memory allocation (structures are allocated by caller beforehand), putting temporary structure in stack.\r\n\r\n### Related Issue\r\nhttps://github.com/leo-project/leofs/issues/440\r\n\r\n### Relate PR\r\nhttps://github.com/leo-project/jerasure/pull/3\r\nhttps://github.com/leo-project/leo_erasure/pull/1"},"comment":{"url":"https://api.github.com/repos/leo-project/jerasure/issues/comments/175472209","html_url":"https://github.com/leo-project/jerasure/pull/3#issuecomment-175472209","issue_url":"https://api.github.com/repos/leo-project/jerasure/issues/3","id":175472209,"user":{"login":"mocchira","id":279052,"avatar_url":"https://avatars.githubusercontent.com/u/279052?v=3","gravatar_id":"","url":"https://api.github.com/users/mocchira","html_url":"https://github.com/mocchira","followers_url":"https://api.github.com/users/mocchira/followers","following_url":"https://api.github.com/users/mocchira/following{/other_user}","gists_url":"https://api.github.com/users/mocchira/gists{/gist_id}","starred_url":"https://api.github.com/users/mocchira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mocchira/subscriptions","organizations_url":"https://api.github.com/users/mocchira/orgs","repos_url":"https://api.github.com/users/mocchira/repos","events_url":"https://api.github.com/users/mocchira/events{/privacy}","received_events_url":"https://api.github.com/users/mocchira/received_events","type":"User","site_admin":false},"created_at":"2016-01-27T08:06:51Z","updated_at":"2016-01-27T08:06:51Z","body":"@windkit \r\nNaming helper functions for no alloc version in `jerasure.c` like `jerasure_matrix_decode_data` the original name  is `jerasure_matrix_decode` and `jerasure_schedule_decode_data_lazy` the original name is `jerasure_schedule_decode_lazy` are difficult to understand to me.\r\nHow about simply suffixing by `_noalloc` as well as others?"}}