
Jan. 12, 2021
2:29 a.m.
On 12/01/21 11:32 am, Ćukasz Langa wrote:
EdgeDB uses stringified annotations exclusively which minimizes runtime memory usage of annotations because those strings are pretty much all ASCII and many can be interned.
946 -> s_schema.Schema 362 -> str 298 -> sd.CommandContext
Seems to me the code objects for those would be identical wherever they're used, and so could be cached and re-used the same way as interned strings. -- Greg