Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ jobs:
with:
version: 1.6
arch: x64
- uses: actions/cache@v1
- uses: actions/cache@v4
env:
cache-name: cache-artifacts
with:
Expand Down
6 changes: 6 additions & 0 deletions src/kinds.jl
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,12 @@ function _register_kinds!(kind_modules, int_to_kindstr, kind_str_to_int, mod, mo
error("Kind module ID $module_id already claimed by module $m")
end
end
_register_kinds_names!(int_to_kindstr, kind_str_to_int, module_id, names)
end

# This function is separated from `_register_kinds!` to prevent sharing of the variable `i`
# here and in the closure in `_register_kinds!`, which causes boxing and bad inference.
function _register_kinds_names!(int_to_kindstr, kind_str_to_int, module_id, names)
# Process names to conflate category BEGIN/END markers with the first/last
# in the category.
i = 0
Expand Down
1 change: 1 addition & 0 deletions src/precompile.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ let filename = joinpath(@__DIR__, "literal_parsing.jl")
if _has_v1_6_hooks
enable_in_core!()
Meta.parse("1 + 2")
Meta.parse(SubString("1 + 2"))
enable_in_core!(false)
end
end
3 changes: 2 additions & 1 deletion src/tokenize.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1339,7 +1339,8 @@ end
function simple_hash(str)
ind = 1
h = UInt64(0)
while ind <= length(str)
L = min(lastindex(str), MAX_KW_LENGTH)
while ind <= L
h = simple_hash(str[ind], h)
ind = nextind(str, ind)
end
Expand Down
Loading