xaizek / vifm (License: GPLv2+) (since 2018-12-07)
Vifm is a file manager with curses interface, which provides Vi[m]-like environment for managing objects within file systems, extended with some useful ideas from mutt.
Commit 91b89ef5a33bcec8ccada166796921b6a2cba8b4

Slightly optimize column_line_match()
Avoid checking column type as it can invoke Lua, which is slower than a
few memory accesses. This function is called a lot, so no need to do
extra work that's easy to avoid.
Author: xaizek
Author date (UTC): 2026-06-07 14:07
Committer name: xaizek
Committer date (UTC): 2026-06-07 22:11
Parent(s): 36730810507c86e9be30c40b7cc71a744287949e
Signing key: 99DC5E4DB05F6BE2
Tree: 0c68e6e1fd83ea02b2e769ed30f3c8f51e870e54
File Lines added Lines deleted
src/ui/fileview.c 9 3
File src/ui/fileview.c changed (mode: 100644) (index 84badae62..c88d33731)
... ... column_line_match(const char full_column[], const format_info_t *info,
1305 1305 const column_data_t *cdt = info->data; const column_data_t *cdt = info->data;
1306 1306 dir_entry_t *entry = cdt->entry; dir_entry_t *entry = cdt->entry;
1307 1307
1308 int is_searchable_column = is_primary_column_id(info->id);
1309 if(!is_searchable_column || cdt->view->matches == 0 || !entry->search_match ||
1310 cdt->custom_match)
1308 /* Check trivial conditions before invoking is_primary_column_id() as it can
1309 * reach into Lua data structures, which is slower than these checks. */
1310 if(cdt->view->matches == 0 || !entry->search_match || cdt->custom_match)
1311 {
1312 return;
1313 }
1314
1315 const int is_searchable_column = is_primary_column_id(info->id);
1316 if(!is_searchable_column)
1311 1317 { {
1312 1318 return; return;
1313 1319 } }
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/vifm

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/vifm

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master