Skip to content

~50x regression in type instantiation count between 3.3 and 3.4 #30819

Closed
@RyanCavanaugh

Description

@RyanCavanaugh

TypeScript Version: 3.4.0

Search Terms: slow styled-components

Code

import styled from "styled-components";

declare const arr: TemplateStringsArray;
const k = styled.div(arr);

Expected behavior: Type instantiation count < ~10k, check time < 0.1s

Actual behavior: Instantiation count ~47k, check time ~2.5s

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issueHigh Priority

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions