Bug 649933 - Creating cash flow report takes a long time

The progress bar seems to induce a non-neglectable performance hit
on OS X and possibly Windows as well. This patch reduces the update
frequency of the progress bar.
This commit is contained in:
Mike
2015-02-10 19:50:33 +01:00
committed by Geert Janssens
parent 629bce126b
commit 8900af27ce

View File

@@ -260,7 +260,8 @@
(for-each
(lambda (split)
(set! work-done (+ 1 work-done))
(gnc:report-percent-done (* 85 (/ work-done splits-to-do)))
(if (= (modulo work-done 100) 0)
(gnc:report-percent-done (* 85 (/ work-done splits-to-do))))
(let ((parent (xaccSplitGetParent split)))
(if (and (gnc:timepair-le (gnc-transaction-get-date-posted parent) to-date-tp)
(gnc:timepair-ge (gnc-transaction-get-date-posted parent) from-date-tp))