✅ FileSystemWatcher - avoiding buffer overflow
I have a file-based communication protocol - insane, I know.
It is used to communicate many messages a second.
The
Let's say I increase the buffer size 2x.
Is there anything else I can do to avoid the notification buffer from overflowing?
I have also configured the following:
I'm also thinking about invoking the body of the
It is used to communicate many messages a second.
The
FileSystemWatcher has a default buffer size of 8KB, which allows up to 15 notifications, assuming the filenames are 260 characters long.Let's say I increase the buffer size 2x.
Is there anything else I can do to avoid the notification buffer from overflowing?
I have also configured the following:
I'm also thinking about invoking the body of the
OnCreated handler in a background thread. Is that a bad idea?