well, the usual.. data safety. we're writing these to be sure stuff on disk
is synched, so if you defer that to some time later in a bg thread it might
not be quite as safe any more. maybe that's fine if we only do it for those
insanely large bulks of images you're talking about.
we would need to double check synchronization as well. i think writing xmp
is done as part of dropping the write lock on an image_t, so the situation
that two threads are writing the xmp at the same time (obviously corrupting
the file) should not happen.
the question is what triggered that bulk write action? applying a thread?
maybe that action should have been in a background thread in the first
place?
-jo
On Mon, Sep 2, 2013 at 10:41 AM, Pascal Obry <pas...@obry.net> wrote:
> Changing a keyword or metadata trigger the writing of the xmp with
> updated information. Using this on some large collection can take a
> very long time if the files are on an external drive. During this time
> darktable is not responsive to any action.
>
> It wouldn't be an issue if the waiting was 1 or 2 seconds but
> yesterday I have cleaned up some of my tags and metadata on selection
> of 1000, 2000 or 4000 files and I had to wait sometime more than 1
> minute!
>
> After looking a bit a this the issue is on the writing of the xmp. It
> is ok with local files but on a NAS it is very slow.
>
> My proposal would be to write the XMP as background jobs.
>
> Does this makes sense? Do you see a drawback?
>
> --
> Pascal Obry / Magny Les Hameaux (78)
>
> The best way to travel is by means of imagination
>
> http://v2p.fr.eu.org
> http://www.obry.net
>
> gpg --keyserver keys.gnupg.net --recv-key F949BD3B
>
>
> ------------------------------------------------------------------------------
> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft technologies
> and advance your career. Get an incredible 1,500+ hours of step-by-step
> tutorial videos with LearnDevNow. Subscribe today and save!
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
> _______________________________________________
> darktable-devel mailing list
> darktable-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/darktable-devel
>
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
darktable-devel mailing list
darktable-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/darktable-devel