Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Diff of /R/jags.object.R [0c6804] .. [e6ee4b] Maximize Restore

  Switch to side-by-side view

--- a/R/jags.object.R
+++ b/R/jags.object.R
@@ -45,7 +45,11 @@
     
     ## Set refresh frequency for progress bar
     if (missing(by) || by <= 0) {
-        by <- min(ceiling(n.iter/50), 100)
+        ##In JAGS 3.x.y there is a memory reallocation bug when
+        ##monitoring that slows down updates. Drop refresh
+        ##frequency to avoid triggering memory reallocations.
+        ##by <- min(ceiling(n.iter/50), 100)
+        by <- ceiling(n.iter/50)
     }
     else {
         by <- ceiling(by)