zfs, mc, mcview and files opening

Eugene M. Zheganin emz at norma.perm.ru
Tue Nov 10 11:54:54 UTC 2015


Hi,

on 10.11.2015 15:05, Trond Endrestøl wrote:
> I blame file(1), it's hopelessly slow. mcview uses file(1) to deduce 
> if it should just display the damn file or run the file through some 
> filter. Maybe an option in mc/mcview to disable the use of file(1) is 
> an acceptable compromise.
Yeah, you seem to be right. /usr/bin/time -h file /var/log/maillog gives
same time of 37-40 seconds to process the file.
The main answer is now why file(1) is that slow ? I tested it on files
of about same size and UFS - there's no lag at all.

Is it worth to report this in bugzilla ?

Thanks.
Eugene.


More information about the freebsd-stable mailing list