Commit be03684
committed
Use
A store's process uses its `StoreId` as its registered name. This is a
public interface of Ra so we can depend on it. Reading from key metrics
counters is already very fast but switching to `whereis/1` eliminates
basically all overhead of this function. When used heavily (for example
in RabbitMQ while publishing and consuming rapidly) the CPU time spent
on `is_store_running/1` disappears from the output of a perf recording
and a flamegraph.erlang:whereis/1 for checking if a store is running1 parent 2d04459 commit be03684
1 file changed
Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1576 | 1576 | | |
1577 | 1577 | | |
1578 | 1578 | | |
1579 | | - | |
1580 | | - | |
1581 | | - | |
1582 | | - | |
1583 | | - | |
| 1579 | + | |
1584 | 1580 | | |
1585 | 1581 | | |
1586 | 1582 | | |
| |||
0 commit comments