I seem to have a case where the function gets compiled on almost every call. This is annoyingly slow.
julia> notice(logger, "Before call"); qlp_run() [2018-11-15 16:13:13 | notice | root]: Before call [2018-11-15 16:14:18 | notice | root]: First line ... ... [2018-11-15 16:14:20 | notice | root]: Starting shutdown
Then I run again immediately in the same Julia session:
julia> notice(logger, "Before call"); qlp_run() [2018-11-15 16:14:25 | notice | root]: Before call [2018-11-15 16:15:29 | notice | root]: First line ... ...
With top of the function definition starting:
function qlp_run(fileStartidx = 0, fileProcPeriod = 1; mode="offline", configFilename = "config.json", inputPath="/run/shm/ifs/") notice(logger, "First line") ...
My code currently lives in the main module.
Any suggestions of what is causing it and how to improve things? I am suspecting it is the use of keyword arguments, but I have on occasion had it that subsequent calls execute immediately, but that seems to be the exception.