Skip to content

Commit 39f720a

Browse files
committed
Merge pull request #11589 from JuliaLang/amitm/precompile_abspath
precompile abspath, normpath for UTF8String for a startup speedup
2 parents 6b94780 + e4e7eec commit 39f720a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

base/precompile.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,10 @@ precompile(Base._uv_hook_alloc_buf, (Base.TTY, UInt))
172172
precompile(Base._uv_hook_readcb, (Base.TTY, Int, Ptr{Void}, UInt))
173173
precompile(Base._uv_hook_writecb_task, (Base.TTY, Ptr{Void}, Int32))
174174
precompile(Base.abs, (Char,))
175+
precompile(Base.abspath, (UTF8String, UTF8String))
176+
precompile(Base.abspath, (UTF8String,))
175177
precompile(Base.abspath, (ASCIIString, ASCIIString))
178+
precompile(Base.abspath, (ASCIIString,))
176179
precompile(Base.alignment, (Float64,))
177180
precompile(Base.any, (Function, Array{Any,1}))
178181
precompile(Base.arg_gen, (ASCIIString,))
@@ -297,7 +300,10 @@ precompile(Base.next, (IntSet, Int))
297300
precompile(Base.next, (UnitRange{Int},Int))
298301
precompile(Base.nextind, (ASCIIString, Int))
299302
precompile(Base.nnz, (BitArray{1},))
303+
precompile(Base.normpath, (ASCIIString, ASCIIString))
300304
precompile(Base.normpath, (ASCIIString,))
305+
precompile(Base.normpath, (UTF8String, UTF8String))
306+
precompile(Base.normpath, (UTF8String,))
301307
precompile(Base.notify, (Condition, Any))
302308
precompile(Base.notify_empty, (Base.RemoteValue,))
303309
precompile(Base.notify_full, (Base.RemoteValue,))

0 commit comments

Comments
 (0)