On Mon, 09 Jul 2007 21:52:06 -0500 Nick Hughart <[EMAIL PROTECTED]> babbled:

in cvs.

> I have slightly integrated the new efreet_mime stuff into e_fm.  For now 
> it is fairly simple and I have just wrapped efreet_mime_globs_type_get 
> inside of e_fm_mime_filename_get and removed a lot of duplicated code.

that's fine.

> More can be done, but figured this would be an easier patch to get in 
> for now.  I have also changed the mime type of directories to 
> inode/directory as it is what the current mime spec calls for.  There is 
> more that can be done and I would be interested in discussing further 
> changes.  I believe that having magic checking for local files will make 
> more users happy, but if that doesn't interest you then at least having 
> the fallbacks and special file types would be good.

magic checks for local files are still VERY VERY VERY expensive. imho i would
want to avoid them in almost all cases. per file it means seeking the disk head
at least 1 or 2 times or more - parsing data etc. even on local file systems
this can and will slow things down a lot - and it can lock up e itself into
doing the work. this should be done by enlightenment_fm (the child proc that
currently lists dirs and monitors for file changes and stat()'s file to get
their basic fs info). then at least it can't block E. but it will cause
directory listing to slow down - a fair bit. in the vast majority of cases
extension/glob matching will work perfectly well.

> I am willing to do the implementation and testing to see how bad/good 
> this all works.  If anyone has a remote NFS server (preferably outside 
> the US) it would be helpful for my testing :)

they might be crazy enough to do that... simple way to test - add a usleep
(500000); into every magic file check. then you will have an idea of what it
might be like on a slow fs. :)

-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    [EMAIL PROTECTED]
裸好多
Tokyo, Japan (東京 日本)

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to