Skip to main content
The question is basically about the efficiency of filesystem lookups for inode numbers
Link

I’m asking because string comparisons are slow, but indexing is fast, and a lot of scripts I write are in bash, which to my knowledge performs a full string lookup for every executable call. All those ls’s and grep’s would be a little bit faster without performing a string lookup on each step. Of pursecourse, this now delves into compiler optimization…optimization.

Anyways, is there a way to directly invoke a program in Linux using only its nodeinode number (assuming you only had to look it up once for all invocations)?

I’m asking because string comparisons are slow, but indexing is fast, and a lot of scripts I write are in bash, which to my knowledge performs a full string lookup for every executable call. All those ls’s and grep’s would be a little bit faster without performing a string lookup on each step. Of purse, this now delves into compiler optimization…

Anyways, is there a way to directly invoke a program in Linux using only its node number (assuming you only had to look it up once for all invocations)?

I’m asking because string comparisons are slow, but indexing is fast, and a lot of scripts I write are in bash, which to my knowledge performs a full string lookup for every executable call. All those ls’s and grep’s would be a little bit faster without performing a string lookup on each step. Of course, this now delves into compiler optimization.

Anyways, is there a way to directly invoke a program in Linux using only its inode number (assuming you only had to look it up once for all invocations)?

Became Hot Network Question
Source Link

Does Linux support invoking a program directly via its inode number?

I’m asking because string comparisons are slow, but indexing is fast, and a lot of scripts I write are in bash, which to my knowledge performs a full string lookup for every executable call. All those ls’s and grep’s would be a little bit faster without performing a string lookup on each step. Of purse, this now delves into compiler optimization…

Anyways, is there a way to directly invoke a program in Linux using only its node number (assuming you only had to look it up once for all invocations)?