3 ms·
> lseek(3, 0, SEEK_CUR) This part can determine if the descriptor is seekable or not. It's a noop if it is and returns an error if it isn't. > It was quite cl
by viraptor 3y ago
> lseek(3, 0, SEEK_CUR)
This part can determine if the descriptor is seekable or not. It's a noop if it is and returns an error if it isn't.
> It was quite clear from the strace output that the overhead of the interpreter costs practically the same as running the program itself.
This kind of idea keeps repeating and... it's misplaced. You can't use a high level API like glob and expect it will do the same minimum of work as your trivial implementation. This has nothing to do with the interpreter itself.