Alternative Version









February 15, 2024

Filelander 1.1 (Update)


A second day






I did the first version of this app in one day March 29th 2021. At that time, I didn't want to spend too much time on that. I revisited it recently with one more day and I improved some parts.

Quick recap: Filelander is a simple app that will scan your computer (folder selected) and it will find duplicate files where you can delete it in batch or select manually which one you want to delete.

The app uses Chromium Embedded Framework (CEF) which is also popular for game launcher (e.g. Battle.net) and standalone web application (e.g. Electron, Steam, Dropbox, Chrome, Edge).

If you see 3 processes inside the same app with the task manager, there is a strong chance that they use CEF. More info about this Multi-process Architecture

The front-end (UI / User interface) is in html / javascript and I added the NES.css framework.

The back-end is in C++ where this part focuses on scan files and folders, detect duplicate files and delete files based on user feedback (batch or selected modes).


Update



The first part I looked at was for the reading buffer size. By default, it was 16 megabytes (16 384 kilobytes, 16 777 216 bytes).

It was not the best option because before comparing 2 files together, the apps will need to read 32 megabytes (2 x 16) if both files are higher than the reading buffer size. I tried a variety of sizes between 16 kilobytes to 64 megabytes and the most efficient one was 512 kilobytes so I applied this size for the 1.1 version.

The files I used for the comparison were mostly youtube videos followed by X and Reddit pictures.

The second improvement was the title bar progression where I applied an update at the fix time compared to file update time which gives a more fluid progression.

The last improvement was to add some multithread logic inside some parts.

You can download the old and new versions here.


There can be only one



Like most of my apps, there is a movie reference: Highlander.

"There can be only one" is the belief and motto among the immortals in the original Highlander film, its sequels and spin-offs. It implies that all immortals must fight and kill one another until only one remains standing; this "one" shall receive The Prize.

I rewatched the movie a couple of days ago. I don't recall the last time I saw this movie before that and it was probably on Beta tape.

It's also a cheat code inside the first Warcraft game (Orcs & Humans Cheats) by enabling the god mod and 255 Damage.

Thanks for reading,

JS.