You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code produces a pathological (8+ seconds) type-checking behavior in the typescript 1.9.0-dev.20160318 compiler as well as mainline 1.8.9.
Using rxjs 5.0.0-beta.2 and typings for es6-shim:
import {Observable, BehaviorSubject} from "rxjs/Rx";
class HelperOne<R,S> {}
class HelperTwo<R,S> {}
class SlowZone<R,S> {
private _helperOne /* TO FIX: Observable<HelperOne<R,S>> */ =
new BehaviorSubject<HelperOne<R,S>>(null);
constructor() {
var helperTwo:Observable<HelperTwo<R,S>> = null;
var x /* DOES NOT FIX : Observable<any>[] */ =
[helperTwo, this._helperOne];
}
}
I think this may be another root cause of slow compilation times for folks using Observable.combineLatest since it will accept as input an array of Observables and it appears that computing the type of the array may lead to excessive compile times.
The text was updated successfully, but these errors were encountered:
mhegazy
added
External
Relates to another program, environment, or user action which we cannot control.
Duplicate
An existing issue was already created
labels
Mar 18, 2016
The following code produces a pathological (8+ seconds) type-checking behavior in the typescript
1.9.0-dev.20160318
compiler as well as mainline1.8.9
.Using rxjs 5.0.0-beta.2 and typings for es6-shim:
Command used:
If the
_helperOne
field is given an explicit type, the following timings are observed:I think this may be another root cause of slow compilation times for folks using
Observable.combineLatest
since it will accept as input an array of Observables and it appears that computing the type of the array may lead to excessive compile times.The text was updated successfully, but these errors were encountered: