Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Help: progress bar to slow

From: reboler::programmer::net at: 20-Nov-2002 11:27

I have a progress bar that keeps track of the progress of an encryption/decryption process. My problem is that updating it is extremely slow. A decryption that takes about 4 seconds without the progress bar takes 10 seconds with the progress bar. I update the bar with the following function: update-progress: func [ progress-face current-index max-index ][ wait 0 if current-index // 50 = 0 [ progress-face/data: current-index / max-index show progress-face ] ] The "if current-index ..." part was included to try and speed it up, but even calling "show" 50-times less frequently doesn't help much. The progress bar itself is as follows: display-encrypt-mode: progress "En/Decrypt Mode" 150x20 center bold 172.158.140 font-color black font [size: 12 shadow: none] with [saved-area: true] Anyone have any ideas on why this is so slow?