Skip to content

Commit 94b7dd0

Browse files
committed
Update
1 parent 796062c commit 94b7dd0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/FileFormats/LP/read.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,10 @@ function Base.read!(io::IO, model::Model{T}) where {T}
106106
return
107107
end
108108

109-
110-
# We want an efficient way to check if `test.value` is a case-insensitive
111-
# version of `target`. This is run for every identifier, so it needs to be fast.
109+
# We want an efficient way to check if `test` is a case-insensitive version of
110+
# `target`. We won't want `lowercase(test) == target` because this involves
111+
# allocating a new string, and we check many identifiers to see if they are
112+
# keywords.
112113
function _compare_case_insenstive(test::String, target::String)
113114
if length(test) != length(target)
114115
return false

0 commit comments

Comments
 (0)