rkallos / erl-filewatch Goto Github PK
View Code? Open in Web Editor NEWSimple file watching for Erlang
Simple file watching for Erlang
As per this comment, the EUnit tests should be improved so that they are easier to debug.
Currently the filewatch driver sends all events back to Erlang, where they are deduplicated by filewatch.erl before being sent onward.
I think a good way of handling this is to create a bitfield with length equal to the number of files being watched and flip a bit for a file if an inotify event has been received for that file.
Right now filewatch cannot watch very many files. There are several barriers to take down before the driver can really scale feasibly. The main goal is to be able to handle at least 64k files. The first step to this is likely to implement deduplication in C, as per this issue.
Problematic line: https://github.com/rkallos/erl-filewatch/blob/master/src/filewatch.erl#L99
The logic here is that if there are two watch pairs for the same file, only the term from the second watch pair will be sent in a message from filewatch.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.