{"action":"opened","number":1,"pull_request":{"url":"https://api.github.com/repos/hoonzis/Pricer/pulls/1","id":82565849,"html_url":"https://github.com/hoonzis/Pricer/pull/1","diff_url":"https://github.com/hoonzis/Pricer/pull/1.diff","patch_url":"https://github.com/hoonzis/Pricer/pull/1.patch","issue_url":"https://api.github.com/repos/hoonzis/Pricer/issues/1","number":1,"state":"open","locked":false,"title":"Binomial Functional Fast","user":{"login":"jackmott","id":4701158,"avatar_url":"https://avatars.githubusercontent.com/u/4701158?v=3","gravatar_id":"","url":"https://api.github.com/users/jackmott","html_url":"https://github.com/jackmott","followers_url":"https://api.github.com/users/jackmott/followers","following_url":"https://api.github.com/users/jackmott/following{/other_user}","gists_url":"https://api.github.com/users/jackmott/gists{/gist_id}","starred_url":"https://api.github.com/users/jackmott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackmott/subscriptions","organizations_url":"https://api.github.com/users/jackmott/orgs","repos_url":"https://api.github.com/users/jackmott/repos","events_url":"https://api.github.com/users/jackmott/events{/privacy}","received_events_url":"https://api.github.com/users/jackmott/received_events","type":"User","site_admin":false},"body":"Simple tweak to your functional implementation that is 3x faster:\r\n\r\nI could quite get my test program integrated nicely into your build system but you can grab it here:\r\n https://gist.github.com/jackmott/1fb6de0ea457b4ff3fc08ff0ac417926\r\n\r\nTest Results -\r\n\r\n```ini\r\n\r\nHost Process Environment Information:\r\nBenchmarkDotNet.Core=v0.9.9.0\r\nOS=Microsoft Windows NT 6.2.9200.0\r\nProcessor=Intel(R) Core(TM) i7-4712HQ CPU 2.30GHz, ProcessorCount=8\r\nFrequency=2240907 ticks, Resolution=446.2479 ns, Timer=TSC\r\nCLR=MS.NET 4.0.30319.42000, Arch=64-bit RELEASE [RyuJIT]\r\nGC=Concurrent Workstation\r\nJitModules=clrjit-v4.6.1590.0\r\n\r\nType=BinomialBenchmark  Mode=Throughput  Platform=X64  \r\nJit=RyuJit  \r\n\r\n```\r\n   Method | Steps |     Median |    StdDev | Scaled | Scaled-SD |    Gen 0 | Gen 1 | Gen 2 | Bytes Allocated/Op |\r\n--------- |------ |----------- |---------- |------- |---------- |--------- |------ |------ |------------------- |\r\n     Func |  1000 | 45.0242 ms | 3.8548 ms |   3.14 |      0.26 | 2,305.00 |     - |     - |      14,153,009.97 |\r\n FuncFast |  1000 | 14.7078 ms | 0.3261 ms |   1.00 |      0.00 | 1,888.40 |     - |     - |      12,332,592.83 |\r\n","created_at":"2016-08-24T15:34:51Z","updated_at":"2016-08-24T15:34:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/hoonzis/Pricer/pulls/1/commits","review_comments_url":"https://api.github.com/repos/hoonzis/Pricer/pulls/1/comments","review_comment_url":"https://api.github.com/repos/hoonzis/Pricer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hoonzis/Pricer/issues/1/comments","statuses_url":"https://api.github.com/repos/hoonzis/Pricer/statuses/f6e515a8ecf106b3fd58bdc0db0e0f7eeee2ff2c","head":{"label":"jackmott:master","ref":"master","sha":"f6e515a8ecf106b3fd58bdc0db0e0f7eeee2ff2c","user":{"login":"jackmott","id":4701158,"avatar_url":"https://avatars.githubusercontent.com/u/4701158?v=3","gravatar_id":"","url":"https://api.github.com/users/jackmott","html_url":"https://github.com/jackmott","followers_url":"https://api.github.com/users/jackmott/followers","following_url":"https://api.github.com/users/jackmott/following{/other_user}","gists_url":"https://api.github.com/users/jackmott/gists{/gist_id}","starred_url":"https://api.github.com/users/jackmott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackmott/subscriptions","organizations_url":"https://api.github.com/users/jackmott/orgs","repos_url":"https://api.github.com/users/jackmott/repos","events_url":"https://api.github.com/users/jackmott/events{/privacy}","received_events_url":"https://api.github.com/users/jackmott/received_events","type":"User","site_admin":false},"repo":{"id":66468734,"name":"Pricer","full_name":"jackmott/Pricer","owner":{"login":"jackmott","id":4701158,"avatar_url":"https://avatars.githubusercontent.com/u/4701158?v=3","gravatar_id":"","url":"https://api.github.com/users/jackmott","html_url":"https://github.com/jackmott","followers_url":"https://api.github.com/users/jackmott/followers","following_url":"https://api.github.com/users/jackmott/following{/other_user}","gists_url":"https://api.github.com/users/jackmott/gists{/gist_id}","starred_url":"https://api.github.com/users/jackmott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackmott/subscriptions","organizations_url":"https://api.github.com/users/jackmott/orgs","repos_url":"https://api.github.com/users/jackmott/repos","events_url":"https://api.github.com/users/jackmott/events{/privacy}","received_events_url":"https://api.github.com/users/jackmott/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jackmott/Pricer","description":"Pricing of options and other financial products","fork":true,"url":"https://api.github.com/repos/jackmott/Pricer","forks_url":"https://api.github.com/repos/jackmott/Pricer/forks","keys_url":"https://api.github.com/repos/jackmott/Pricer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jackmott/Pricer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jackmott/Pricer/teams","hooks_url":"https://api.github.com/repos/jackmott/Pricer/hooks","issue_events_url":"https://api.github.com/repos/jackmott/Pricer/issues/events{/number}","events_url":"https://api.github.com/repos/jackmott/Pricer/events","assignees_url":"https://api.github.com/repos/jackmott/Pricer/assignees{/user}","branches_url":"https://api.github.com/repos/jackmott/Pricer/branches{/branch}","tags_url":"https://api.github.com/repos/jackmott/Pricer/tags","blobs_url":"https://api.github.com/repos/jackmott/Pricer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jackmott/Pricer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jackmott/Pricer/git/refs{/sha}","trees_url":"https://api.github.com/repos/jackmott/Pricer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jackmott/Pricer/statuses/{sha}","languages_url":"https://api.github.com/repos/jackmott/Pricer/languages","stargazers_url":"https://api.github.com/repos/jackmott/Pricer/stargazers","contributors_url":"https://api.github.com/repos/jackmott/Pricer/contributors","subscribers_url":"https://api.github.com/repos/jackmott/Pricer/subscribers","subscription_url":"https://api.github.com/repos/jackmott/Pricer/subscription","commits_url":"https://api.github.com/repos/jackmott/Pricer/commits{/sha}","git_commits_url":"https://api.github.com/repos/jackmott/Pricer/git/commits{/sha}","comments_url":"https://api.github.com/repos/jackmott/Pricer/comments{/number}","issue_comment_url":"https://api.github.com/repos/jackmott/Pricer/issues/comments{/number}","contents_url":"https://api.github.com/repos/jackmott/Pricer/contents/{+path}","compare_url":"https://api.github.com/repos/jackmott/Pricer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jackmott/Pricer/merges","archive_url":"https://api.github.com/repos/jackmott/Pricer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jackmott/Pricer/downloads","issues_url":"https://api.github.com/repos/jackmott/Pricer/issues{/number}","pulls_url":"https://api.github.com/repos/jackmott/Pricer/pulls{/number}","milestones_url":"https://api.github.com/repos/jackmott/Pricer/milestones{/number}","notifications_url":"https://api.github.com/repos/jackmott/Pricer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jackmott/Pricer/labels{/name}","releases_url":"https://api.github.com/repos/jackmott/Pricer/releases{/id}","deployments_url":"https://api.github.com/repos/jackmott/Pricer/deployments","created_at":"2016-08-24T14:00:18Z","updated_at":"2016-08-24T14:00:19Z","pushed_at":"2016-08-24T15:31:28Z","git_url":"git://github.com/jackmott/Pricer.git","ssh_url":"git@github.com:jackmott/Pricer.git","clone_url":"https://github.com/jackmott/Pricer.git","svn_url":"https://github.com/jackmott/Pricer","homepage":null,"size":5555,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"hoonzis:master","ref":"master","sha":"580580b981ba927e2fbddf7a5da38914834aacbe","user":{"login":"hoonzis","id":1754455,"avatar_url":"https://avatars.githubusercontent.com/u/1754455?v=3","gravatar_id":"","url":"https://api.github.com/users/hoonzis","html_url":"https://github.com/hoonzis","followers_url":"https://api.github.com/users/hoonzis/followers","following_url":"https://api.github.com/users/hoonzis/following{/other_user}","gists_url":"https://api.github.com/users/hoonzis/gists{/gist_id}","starred_url":"https://api.github.com/users/hoonzis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoonzis/subscriptions","organizations_url":"https://api.github.com/users/hoonzis/orgs","repos_url":"https://api.github.com/users/hoonzis/repos","events_url":"https://api.github.com/users/hoonzis/events{/privacy}","received_events_url":"https://api.github.com/users/hoonzis/received_events","type":"User","site_admin":false},"repo":{"id":44133703,"name":"Pricer","full_name":"hoonzis/Pricer","owner":{"login":"hoonzis","id":1754455,"avatar_url":"https://avatars.githubusercontent.com/u/1754455?v=3","gravatar_id":"","url":"https://api.github.com/users/hoonzis","html_url":"https://github.com/hoonzis","followers_url":"https://api.github.com/users/hoonzis/followers","following_url":"https://api.github.com/users/hoonzis/following{/other_user}","gists_url":"https://api.github.com/users/hoonzis/gists{/gist_id}","starred_url":"https://api.github.com/users/hoonzis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoonzis/subscriptions","organizations_url":"https://api.github.com/users/hoonzis/orgs","repos_url":"https://api.github.com/users/hoonzis/repos","events_url":"https://api.github.com/users/hoonzis/events{/privacy}","received_events_url":"https://api.github.com/users/hoonzis/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hoonzis/Pricer","description":"Pricing of options and other financial products","fork":false,"url":"https://api.github.com/repos/hoonzis/Pricer","forks_url":"https://api.github.com/repos/hoonzis/Pricer/forks","keys_url":"https://api.github.com/repos/hoonzis/Pricer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hoonzis/Pricer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hoonzis/Pricer/teams","hooks_url":"https://api.github.com/repos/hoonzis/Pricer/hooks","issue_events_url":"https://api.github.com/repos/hoonzis/Pricer/issues/events{/number}","events_url":"https://api.github.com/repos/hoonzis/Pricer/events","assignees_url":"https://api.github.com/repos/hoonzis/Pricer/assignees{/user}","branches_url":"https://api.github.com/repos/hoonzis/Pricer/branches{/branch}","tags_url":"https://api.github.com/repos/hoonzis/Pricer/tags","blobs_url":"https://api.github.com/repos/hoonzis/Pricer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hoonzis/Pricer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hoonzis/Pricer/git/refs{/sha}","trees_url":"https://api.github.com/repos/hoonzis/Pricer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hoonzis/Pricer/statuses/{sha}","languages_url":"https://api.github.com/repos/hoonzis/Pricer/languages","stargazers_url":"https://api.github.com/repos/hoonzis/Pricer/stargazers","contributors_url":"https://api.github.com/repos/hoonzis/Pricer/contributors","subscribers_url":"https://api.github.com/repos/hoonzis/Pricer/subscribers","subscription_url":"https://api.github.com/repos/hoonzis/Pricer/subscription","commits_url":"https://api.github.com/repos/hoonzis/Pricer/commits{/sha}","git_commits_url":"https://api.github.com/repos/hoonzis/Pricer/git/commits{/sha}","comments_url":"https://api.github.com/repos/hoonzis/Pricer/comments{/number}","issue_comment_url":"https://api.github.com/repos/hoonzis/Pricer/issues/comments{/number}","contents_url":"https://api.github.com/repos/hoonzis/Pricer/contents/{+path}","compare_url":"https://api.github.com/repos/hoonzis/Pricer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hoonzis/Pricer/merges","archive_url":"https://api.github.com/repos/hoonzis/Pricer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hoonzis/Pricer/downloads","issues_url":"https://api.github.com/repos/hoonzis/Pricer/issues{/number}","pulls_url":"https://api.github.com/repos/hoonzis/Pricer/pulls{/number}","milestones_url":"https://api.github.com/repos/hoonzis/Pricer/milestones{/number}","notifications_url":"https://api.github.com/repos/hoonzis/Pricer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hoonzis/Pricer/labels{/name}","releases_url":"https://api.github.com/repos/hoonzis/Pricer/releases{/id}","deployments_url":"https://api.github.com/repos/hoonzis/Pricer/deployments","created_at":"2015-10-12T20:55:11Z","updated_at":"2016-07-14T07:40:02Z","pushed_at":"2016-08-24T15:34:51Z","git_url":"git://github.com/hoonzis/Pricer.git","ssh_url":"git@github.com:hoonzis/Pricer.git","clone_url":"https://github.com/hoonzis/Pricer.git","svn_url":"https://github.com/hoonzis/Pricer","homepage":null,"size":5555,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hoonzis/Pricer/pulls/1"},"html":{"href":"https://github.com/hoonzis/Pricer/pull/1"},"issue":{"href":"https://api.github.com/repos/hoonzis/Pricer/issues/1"},"comments":{"href":"https://api.github.com/repos/hoonzis/Pricer/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/hoonzis/Pricer/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/hoonzis/Pricer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hoonzis/Pricer/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/hoonzis/Pricer/statuses/f6e515a8ecf106b3fd58bdc0db0e0f7eeee2ff2c"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":43,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"jackmott"}}