Closed kjnilsson closed 2 years ago
Using RabbitMQ whilst consuming 1M messages (which results in snapshots being taken) we have the following before perf capture:
And after (With no snapshot compression):
It is notable that the time spent in longest_match
is no longer done. Also on my devbox I got a higher consumption rate whilst capturing with perf (75k msg/sec vs 65k msg/sec). This could be anecdotal however.
This removes the use of snapshot compression from the
ra_log_snapshot
module completely. Users that want to use snapshot compression can implement their ownra_snapshot
behaviour but is clear that using compression only uses excessive cpu which is likely to be a more scarce resource than disk space.Use
term_to_iovec
instead ofterm_to_binary