{"id":16948673,"url":"https://github.com/technicalpickles/big-sorbet-t-enum-performance","last_synced_at":"2025-03-21T09:45:43.075Z","repository":{"id":210247563,"uuid":"726106994","full_name":"technicalpickles/big-sorbet-t-enum-performance","owner":"technicalpickles","description":"Demonstrate what happens when using Sorbet's T::Enum that has a lot of values","archived":false,"fork":false,"pushed_at":"2023-12-01T18:15:05.000Z","size":368,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-15T00:29:55.926Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/technicalpickles.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-12-01T14:49:19.000Z","updated_at":"2023-12-01T14:59:09.000Z","dependencies_parsed_at":"2023-12-01T15:57:15.068Z","dependency_job_id":null,"html_url":"https://github.com/technicalpickles/big-sorbet-t-enum-performance","commit_stats":null,"previous_names":["technicalpickles/sorbet-giant-tenum-example"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technicalpickles%2Fbig-sorbet-t-enum-performance","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technicalpickles%2Fbig-sorbet-t-enum-performance/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technicalpickles%2Fbig-sorbet-t-enum-performance/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technicalpickles%2Fbig-sorbet-t-enum-performance/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/technicalpickles","download_url":"https://codeload.github.com/technicalpickles/big-sorbet-t-enum-performance/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244776270,"owners_count":20508503,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T21:51:58.920Z","updated_at":"2025-03-21T09:45:43.038Z","avatar_url":"https://github.com/technicalpickles.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Big Sorbet T::Enum Performance\n\nWhile asking for help with performance of `bin/srb tc`, we got some help to see that there are some very slow methods to type check. This turned out to be related to having `T::Enum` with some 6k values :flush: \n\n## Steps to Reproduce\n\n```\ngit clone https://github.com/technicalpickles/sorbet-giant-tenum-example\ncd sorbet-giant-tenum-example\nbundle install\nbundle exec srb tc --counters --web-trace-file trace.json --verbose\n```\n\nGo to https://ui.perfetto.dev/ and upload trace.json to analyze. Look for `typecheckOne` spans.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechnicalpickles%2Fbig-sorbet-t-enum-performance","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechnicalpickles%2Fbig-sorbet-t-enum-performance","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechnicalpickles%2Fbig-sorbet-t-enum-performance/lists"}