Skip to content

Commit 5980dab

Browse files
authored
Merge pull request #169 from KristofferC/kc/improve_load_time
move shuffling of animals to be done on demand instead of during initialization
2 parents 1811370 + 85276e2 commit 5980dab

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/MacroTools.jl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ const animals_file = joinpath(@__DIR__, "..", "animals.txt")
2222
_animals = split(read(animals_file, String))
2323
resize!(animals, length(_animals))
2424
animals .= Symbol.(lowercase.(_animals))
25-
26-
function __init__()
27-
Random.shuffle!(animals)
28-
end
25+
Random.shuffle!(animals)
2926

3027
end # module

0 commit comments

Comments
 (0)