Yea, I've tested with an empty file aswell and it was still near the same 
results. So seems it's a limit of my glue code/ the NimVM interpreter. Below is 
the code I was using to test with if you want to give it a whirl.
    
    
    import nimscripter, times
    const code = """
    proc fibonacci(n: int): int =
      if n <= 0:
        echo "wrong input"
      elif n == 1:
        result = 0
      elif n == 2:
        result = 1
      else: result = fibonacci(n - 1) + fibonacci(n - 2)
    echo fibonacci(20)"""
    let t = cpuTime()
    discard loadScript("", false, stdPath = "/home/jason/nimscripter/stdlib") # 
The stdlib in the repo
    
    
    Run

Reply via email to