On Mon, Sep 2, 2013 at 11:21 AM, Jose Carlos Garcia Sogo
<jcs...@gmail.com>wrote:

> To be more specific:
>
> All these modules are calling dt_image_synch_xmp which at the end
> calls dt_exif_xmp_write, which does the actual writing of the file. So
> probably we should call this a job.
>

no, that's exactly the race condition horror scenario i described earlier..
if we write to that file we want to be sure we do that now and only in one
thread at a time. if you just put it in a job you'll need to provide
wrappers which force it to happen now and put a mutex around it etc.


>
> On Mon, Sep 2, 2013 at 11:11 AM, Jose Carlos Garcia Sogo
> <jcs...@gmail.com> wrote:
> > More than a background job it should be done in a thread different to
> > the UI thread.
> >
> > 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
> >
> >
> >
> > --
> > José Carlos García Sogo
> >    jcs...@gmail.com
>
>
>
> --
> José Carlos García Sogo
>    jcs...@gmail.com
>
>
> ------------------------------------------------------------------------------
> 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

Reply via email to