beenencoded / filesystem-snapshot-creator Goto Github PK
View Code? Open in Web Editor NEWTrack every file and folder chang on your computer!
Track every file and folder chang on your computer!
As of right now, the program has to scan through the list of paths that represent the heart of a snapshot to get to the next snapshot's information. This is a problem, because a snapshot consists of a list of strings (a list of paths on the filesystem), and to go through them all is inefficient. To give you an idea of why this is so inefficient, I will tell you I have over 291,000 paths on my computer, which translate to a snapshot containing 291,000 strings (million+ characters at least).
I have an Idea: include the file postition on the next snapshot along with the snapshot information that preceds the list of paths. Then, when we load, we can just ifstream().seekg() to the next snapshot.
If anyone else has any other good ideas, I would be willing to hear them.
Also, about memory: Whenever a snapshot is taken, the entire thing is loaded into memory. I know it would be better to just save it to the file, but it also has to be completely loaded for snapshot comparisons, so that a report can be created listing the created and deleted paths. So far, upon the class' destruction there is 2,900 kb of memory still allocated to the program (ascertained through Task Manager... It may or may not be right...), and I want to make it more efficient that that.
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.