tridactyl/compiler/types
glacambre a808e9e742
Metadata Types: Use a single type instance where it makes sense
One of the possible problems of #1184 (firefox freezing periodically
with Tridactyl enabled) is that Tridactyl uses too much RAM, which could
cause Firefox to attempt to GC it from time to time.
One easy optimisation to try to reduce this problem is to use singletons
for metadata when possible (VoidType, AnyType...).
According to my measurements, this saves the allocation of 933 objects,
which amounted to ~0.03MB. Multiply this by 40 tabs and you get about
1.20MB saved, the space of a whole 1980-era floppy disk.
2018-11-21 06:56:01 +01:00
..
AllTypes.ts Make the generated metadata typed 2018-11-04 17:24:16 +01:00
AnyType.ts Metadata Types: Use a single type instance where it makes sense 2018-11-21 06:56:01 +01:00
ArrayType.ts Make the generated metadata typed 2018-11-04 17:24:16 +01:00
BooleanType.ts Metadata Types: Use a single type instance where it makes sense 2018-11-21 06:56:01 +01:00
FunctionType.ts Make the generated metadata typed 2018-11-04 17:24:16 +01:00
LiteralTypeType.ts Make the generated metadata typed 2018-11-04 17:24:16 +01:00
NumberType.ts Metadata Types: Use a single type instance where it makes sense 2018-11-21 06:56:01 +01:00
ObjectType.ts Improve generated metadata types for objects 2018-11-04 17:28:15 +01:00
StringType.ts Metadata Types: Use a single type instance where it makes sense 2018-11-21 06:56:01 +01:00
TupleType.ts Make the generated metadata typed 2018-11-04 17:24:16 +01:00
Type.ts Make the generated metadata typed 2018-11-04 17:24:16 +01:00
TypeReferenceType.ts Make the generated metadata typed 2018-11-04 17:24:16 +01:00
UnionType.ts UnionType.ts: Improve error message on failed conversions. 2018-11-12 19:10:54 +01:00
VoidType.ts Metadata Types: Use a single type instance where it makes sense 2018-11-21 06:56:01 +01:00