maxpert / marmot

A distributed SQLite replicator built on top of NATS
https://maxpert.github.io/marmot/
MIT License
1.86k stars 42 forks source link

Adding pprof flag to support better tracing & rewriting file watching #97

Closed maxpert closed 3 months ago

maxpert commented 10 months ago

Turns out people were noticing high CPU usage due to fsnotify flooding Marmot with fsnotify.Chmod. This PR introduces pprof flag to run marmot with profiling and fixes the issue.

gedw99 commented 4 months ago

Hey @maxpert

How do you feel about merging this.

Will be useful for debugging.

gedw99 commented 3 months ago

thanks @maxpert for this. It will make it much easier to work on.

I will try out running Pocket base with a NATS Cluster and see if I can help with optimisation.