2 ms·
I don’t see why performance would be worse. Presumably, the application would register an event handler to get change events. And optionally block until an even
by josephg 3y ago
I don’t see why performance would be worse. Presumably, the application would register an event handler to get change events. And optionally block until an event arrives just like you can do now.
My expectation is performance would be better because you don’t need to parse the data as a string.
And you also avoid the ABA problem this way. If you wait for a file in procfs to change, by the time you read it it may have changed to something else - and you’ve lost data.