tridactyl/compiler
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
..
metadata Completions: do not show @hidden excmds 2018-11-07 08:39:36 +01:00
types Metadata Types: Use a single type instance where it makes sense 2018-11-21 06:56:01 +01:00
gen_metadata.ts compiler: Add information about @hidden symbols to metadata 2018-11-07 08:12:53 +01:00