{"action":"created","issue":{"url":"https://api.github.com/repos/milessabin/shapeless/issues/793","repository_url":"https://api.github.com/repos/milessabin/shapeless","labels_url":"https://api.github.com/repos/milessabin/shapeless/issues/793/labels{/name}","comments_url":"https://api.github.com/repos/milessabin/shapeless/issues/793/comments","events_url":"https://api.github.com/repos/milessabin/shapeless/issues/793/events","html_url":"https://github.com/milessabin/shapeless/issues/793","id":280539062,"number":793,"title":"Intersection is too slow for case class with more than 6 fields","user":{"login":"SergeyGrigorev","id":755252,"avatar_url":"https://avatars3.githubusercontent.com/u/755252?v=4","gravatar_id":"","url":"https://api.github.com/users/SergeyGrigorev","html_url":"https://github.com/SergeyGrigorev","followers_url":"https://api.github.com/users/SergeyGrigorev/followers","following_url":"https://api.github.com/users/SergeyGrigorev/following{/other_user}","gists_url":"https://api.github.com/users/SergeyGrigorev/gists{/gist_id}","starred_url":"https://api.github.com/users/SergeyGrigorev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SergeyGrigorev/subscriptions","organizations_url":"https://api.github.com/users/SergeyGrigorev/orgs","repos_url":"https://api.github.com/users/SergeyGrigorev/repos","events_url":"https://api.github.com/users/SergeyGrigorev/events{/privacy}","received_events_url":"https://api.github.com/users/SergeyGrigorev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-12-08T16:13:10Z","updated_at":"2017-12-09T08:43:26Z","closed_at":null,"author_association":"NONE","body":"So, shapeless.ops.hlist.Intersection takes too much time to compile. In my case it's impossible to wait for a case class with 10 fields. But for a test only - 6 and 7 fields also takes too much time.\r\n\r\n```scala\r\n    test(\"too slow to compile\") {\r\n      case class C1(f1: String, f2: String, f3: String, f4: String, f5: String, f6: String, f7: String)\r\n      case class C2(f1: String, f2: String, f3: String, f4: String, f5: String, f6: String, f7: String)\r\n\r\n      val gen = LabelledGeneric[C1]\r\n      val gen2 = LabelledGeneric[C2]\r\n      val inter = hlist.Intersection[gen.Repr, gen2.Repr]\r\n    }\r\n```\r\n\r\nIn my case of course classes is a little different, it's just a test case. Is there any compiler optimization to pass this problem?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/milessabin/shapeless/issues/comments/350433229","html_url":"https://github.com/milessabin/shapeless/issues/793#issuecomment-350433229","issue_url":"https://api.github.com/repos/milessabin/shapeless/issues/793","id":350433229,"user":{"login":"SergeyGrigorev","id":755252,"avatar_url":"https://avatars3.githubusercontent.com/u/755252?v=4","gravatar_id":"","url":"https://api.github.com/users/SergeyGrigorev","html_url":"https://github.com/SergeyGrigorev","followers_url":"https://api.github.com/users/SergeyGrigorev/followers","following_url":"https://api.github.com/users/SergeyGrigorev/following{/other_user}","gists_url":"https://api.github.com/users/SergeyGrigorev/gists{/gist_id}","starred_url":"https://api.github.com/users/SergeyGrigorev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SergeyGrigorev/subscriptions","organizations_url":"https://api.github.com/users/SergeyGrigorev/orgs","repos_url":"https://api.github.com/users/SergeyGrigorev/repos","events_url":"https://api.github.com/users/SergeyGrigorev/events{/privacy}","received_events_url":"https://api.github.com/users/SergeyGrigorev/received_events","type":"User","site_admin":false},"created_at":"2017-12-09T08:43:26Z","updated_at":"2017-12-09T08:43:26Z","author_association":"NONE","body":"@milessabin have tried but the situation almost isn't changed, it still takes ages. For example, 37 seconds for 7 fields and 108 seconds for 8 fields. I haven't got result for 9 fields"}}
{"actor":{"display_login":"SergeyGrigorev"}}