Changing to `ref` improves the performance for large `N = 100_000`.
    
    
    ...
      StockPrices* = ref object
    ...
    
    
    Run

Reply via email to