Re: [Nautilus-list] Trash emblems.



On Friday, August 17, 2001, at 05:15  PM, Alex Larsson wrote:

The directory view calls eel_uri_is_in_trash() for every file to see if
the trash emblem should be added. This is then dutifully excluded from all
views except the search view by the get_emblem_names_to_exclude() signal.

The problem is that this function costs, it tries to locate the uri for
each file, resulting in stat() calls and access() calls per file in the
directory.

In RH we don't support medusa, so we just don't set the trash emblem for
performance reason, but for HEAD this needs to be solved in some other
way. Any ideas?

As we discussed in a previous thread, this should be cached, either in gnome-vfs or in eel. One of these two levels can make some kind of assumption that once you find or don't find trash, you don't have to keep looking for it over and over again.

I would like to see the work for locating the trash done when mounting and unmounting happens, and no I/O at all done when eel_uri_is_trash is called.

    -- Darin




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]