Ticket #123 (assigned task)

Opened 10 years ago

Last modified 10 years ago

xuvtools: [wishlist] re-saving a project is slow (on windows)

Reported by: ne704 [niko@… Owned by: ne704
Priority: minor Milestone:
Component: xuvtools Version:
Keywords: xuvtools, xuvtools_gui, win Cc: niko@…, mario@…

Description

r3142 introduces a "Sleep(10)" in source:trunk/xuvtools/src/xuvimgproc/xuvProjectFiles.cc (line 238) which is pretty annoying. either introduce a loop checking if the file has been removed already or do something less annoying otherwise...

Change History

Changed 10 years ago by ne704 [niko@…

  • status changed from new to assigned

hum, according to Visual Studio, the value of Sleep() should be in miliseconds, so this does not explain the difference in savin and re-saving.

so just consider this bugreport as a reminder, we need to dig further on this issue...

Changed 10 years ago by emmenlau

Is saving or re-saving slow, or what is the original intent for the bugreport?

On a side note, the Sleep() is only a workaround and does nothing useful. Once a long time ago, in a far away land, a programmer called Mario wrote a program that creates a directory tree on MS Windows. When Mario did not sleep some time before creating subdirectories, the operating system grew tired of him and refused the creation. So he learned to always sleep on Windows before doing FS changes.

Changed 10 years ago by emmenlau

  • owner changed from ne704 to emmenlau
  • status changed from assigned to new

Please update this bug report to answer the question "what is the original intent for the bugreport"? Else I will close this bug in 1 week as outdated :-)

Changed 10 years ago by emmenlau

  • cc mario@… added

Changed 10 years ago by ne704 [niko@…

  • owner changed from emmenlau to ne704
  • priority changed from trivial to minor
  • status changed from new to assigned
  • summary changed from xuvtools: [wishlist] find a better way than "Sleep(10)" when re-saving a project to xuvtools: [wishlist] re-saving a project is slow (on windows)

re-saving a project takes considerably more time than saving it the first time (or with a new name), at least on win64.

have to gather more information about this.

Note: See TracTickets for help on using tickets.