From ce57f30b0e234b9cd63abdad08dd3231f82b3a46 Mon Sep 17 00:00:00 2001
From: idast772 <idast772@tlhw-4-2.ad.liu.se>
Date: Tue, 8 Oct 2019 12:07:29 +0200
Subject: [PATCH] Think I fixed the Bottleneck in Profiling.

---
 profiling/test.jl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/profiling/test.jl b/profiling/test.jl
index cdb378a..467ae03 100644
--- a/profiling/test.jl
+++ b/profiling/test.jl
@@ -4,8 +4,8 @@ using Random
 function f()
   lst = rand(50000)
   for i in lst
-    s = "List entry $(i)\r" # The \r makes it so the terminal isn't filled
     if i > 0.99
+      s = "List entry $(i)\r"
       print(s)
     end
   end
-- 
GitLab