Temporal.jl icon indicating copy to clipboard operation
Temporal.jl copied to clipboard

`using Temporal; using Temporal` takes 13 times slower on Julia 1.2, Julia 1.3

Open wookay opened this issue 5 years ago • 2 comments

here's tests on travis.

  • https://travis-ci.org/wookay/TestTemporal.jl/jobs/549070403
$ time julia -e '@info VERSION; using Temporal'
[ Info: 1.1.1
real	0m1.258s
user	0m1.170s
sys	0m0.204s

$ time julia -e '@info VERSION; using Temporal; using Temporal'
[ Info: 1.1.1
real	0m3.696s
user	0m3.576s
sys	0m0.228s

$ time julia -e '@info VERSION; using Temporal; using Temporal; using Temporal'
[ Info: 1.1.1
real	0m3.638s
user	0m3.508s
sys	0m0.245s
  • https://travis-ci.org/wookay/TestTemporal.jl/jobs/549070404
$ time julia -e '@info VERSION; using Temporal'
[ Info: 1.3.0-DEV.433
real	0m1.173s
user	0m1.036s
sys	0m0.253s

$ time julia -e '@info VERSION; using Temporal; using Temporal'
[ Info: 1.3.0-DEV.433
real	0m15.681s                      <=====================
user	0m15.503s
sys	0m0.292s

$ time julia -e '@info VERSION; using Temporal; using Temporal; using Temporal'
[ Info: 1.3.0-DEV.433
real	0m15.632s                     <=====================
user	0m15.476s
sys	0m0.268s

wookay avatar Jun 22 '19 11:06 wookay

I guess it's related https://github.com/JuliaLang/julia/issues/32971

iblislin avatar Aug 27 '19 06:08 iblislin

Strange that using the second time adds time (close to as much as the first time, or even worse). Can it simply be avoided until this is fixed?

PallHaraldsson avatar Aug 27 '19 20:08 PallHaraldsson