feat(perf): port table scrolling benchmark to Angular 2
This commit is contained in:
@ -2,7 +2,6 @@ library common.stuff;
|
||||
|
||||
import 'dart:async';
|
||||
import 'dart:collection';
|
||||
import 'package:fixnum/fixnum.dart';
|
||||
import 'package:observe/observe.dart';
|
||||
|
||||
const ITEMS = 1000;
|
||||
@ -204,8 +203,8 @@ class Opportunity extends RawEntity {
|
||||
}
|
||||
|
||||
class Account extends RawEntity {
|
||||
Int64 get accountId => this['accountId'];
|
||||
set accountId(Int64 val) {
|
||||
int get accountId => this['accountId'];
|
||||
set accountId(int val) {
|
||||
this['accountId'] = val;
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,6 @@
|
||||
library random_data;
|
||||
|
||||
import 'common.dart';
|
||||
import 'package:fixnum/fixnum.dart';
|
||||
|
||||
List<Offering> generateOfferings(int count) =>
|
||||
new List.generate(count, generateOffering);
|
||||
@ -34,7 +33,7 @@ Opportunity generateOpportunity(int seed) {
|
||||
|
||||
Account generateAccount(int seed) {
|
||||
return new Account()
|
||||
..accountId = new Int64(seed);
|
||||
..accountId = seed;
|
||||
}
|
||||
|
||||
String generateName(int seed) {
|
||||
|
Reference in New Issue
Block a user