{"action":"created","issue":{"url":"https://api.github.com/repos/dalek-cryptography/curve25519-dalek/issues/181","repository_url":"https://api.github.com/repos/dalek-cryptography/curve25519-dalek","labels_url":"https://api.github.com/repos/dalek-cryptography/curve25519-dalek/issues/181/labels{/name}","comments_url":"https://api.github.com/repos/dalek-cryptography/curve25519-dalek/issues/181/comments","events_url":"https://api.github.com/repos/dalek-cryptography/curve25519-dalek/issues/181/events","html_url":"https://github.com/dalek-cryptography/curve25519-dalek/issues/181","id":347028973,"node_id":"MDU6SXNzdWUzNDcwMjg5NzM=","number":181,"title":"Are there any performance bugs that prevent the usage of shuffle! in the AVX2 backend?","user":{"login":"gnzlbg","id":904614,"node_id":"MDQ6VXNlcjkwNDYxNA==","avatar_url":"https://avatars0.githubusercontent.com/u/904614?v=4","gravatar_id":"","url":"https://api.github.com/users/gnzlbg","html_url":"https://github.com/gnzlbg","followers_url":"https://api.github.com/users/gnzlbg/followers","following_url":"https://api.github.com/users/gnzlbg/following{/other_user}","gists_url":"https://api.github.com/users/gnzlbg/gists{/gist_id}","starred_url":"https://api.github.com/users/gnzlbg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gnzlbg/subscriptions","organizations_url":"https://api.github.com/users/gnzlbg/orgs","repos_url":"https://api.github.com/users/gnzlbg/repos","events_url":"https://api.github.com/users/gnzlbg/events{/privacy}","received_events_url":"https://api.github.com/users/gnzlbg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-08-02T14:09:17Z","updated_at":"2018-08-02T18:28:55Z","closed_at":null,"author_association":"NONE","body":"I just read a blog post about this library and was wondering why does the AVX2 backend do not use the `shuffle!` macro instead of the many other intrinsics for re-ordering vector elements. \r\n\r\nIf there are any performance issues with it, it would really help if bugs could be filled in packed_simd upstream."},"comment":{"url":"https://api.github.com/repos/dalek-cryptography/curve25519-dalek/issues/comments/410024082","html_url":"https://github.com/dalek-cryptography/curve25519-dalek/issues/181#issuecomment-410024082","issue_url":"https://api.github.com/repos/dalek-cryptography/curve25519-dalek/issues/181","id":410024082,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMDAyNDA4Mg==","user":{"login":"gnzlbg","id":904614,"node_id":"MDQ6VXNlcjkwNDYxNA==","avatar_url":"https://avatars0.githubusercontent.com/u/904614?v=4","gravatar_id":"","url":"https://api.github.com/users/gnzlbg","html_url":"https://github.com/gnzlbg","followers_url":"https://api.github.com/users/gnzlbg/followers","following_url":"https://api.github.com/users/gnzlbg/following{/other_user}","gists_url":"https://api.github.com/users/gnzlbg/gists{/gist_id}","starred_url":"https://api.github.com/users/gnzlbg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gnzlbg/subscriptions","organizations_url":"https://api.github.com/users/gnzlbg/orgs","repos_url":"https://api.github.com/users/gnzlbg/repos","events_url":"https://api.github.com/users/gnzlbg/events{/privacy}","received_events_url":"https://api.github.com/users/gnzlbg/received_events","type":"User","site_admin":false},"created_at":"2018-08-02T18:28:55Z","updated_at":"2018-08-02T18:28:55Z","author_association":"NONE","body":"Looking at the code, the shuffle macro just takes a constant vector of indices. \r\n\r\nI think that you might be able to keep using the `AAAA` notation with `shuffle!` by doing something like:\r\n\r\n```rust\r\nconst AAAA: [i32; 4] = [0, 0, 0, 0];\r\nshuffle!(vec, AAAA); "}}
{"actor":{"display_login":"gnzlbg"}}