Open chouzar opened 1 month ago
For making a lookup in the tagged table we currently need to first retrieve the Table Id, then make the search in ETS:
https://github.com/chouzar/chip/blob/1cbf02bfec648c6d21e83dec3b755124f58834d8/src/chip.gleam#L138-L144
This puts a bit of a slowdown to calls from different callers as they have to wait for the registry to return the reference. Some possible solutions:
{pid, tag}
For making a lookup in the tagged table we currently need to first retrieve the Table Id, then make the search in ETS:
https://github.com/chouzar/chip/blob/1cbf02bfec648c6d21e83dec3b755124f58834d8/src/chip.gleam#L138-L144
This puts a bit of a slowdown to calls from different callers as they have to wait for the registry to return the reference. Some possible solutions:
{pid, tag}
, some of the costs: