Investigating large latency on a constrained Windows environment

TimG
Sat, 18 May 2024 11:07:44 +0000
General Usage

On first start-up in the morning in VSCode, my code takes fully 7 minutes before executing the first line of my actual script (to read a csv file).

using DataFrames
using CSV
using Dates
using ZipArchives
using GeoStats
using GeoIO

import Proj
import CairoMakie as Mke

postcodes = CSV.read("TerminatedPostcodes.csv", DataFrame)

I do not mean the time it takes to open and initialise VSCode itself. I mean how long I wait after I hit run before anything I asked for starts to happen.

This code is running in its own environment, not global.

I think this is related to Makie, as @lmiq suggests, but I’m not sure.

All subsequent runs are speedy - this is just the first run.

No doubt there’s an easy fix. I’m just not sure what!

86 posts - 19 participants