more micro optimization

This commit is contained in:
Michael Go
2024-10-24 22:23:27 -03:00
parent 7b1be1e27b
commit 45e3ab86da
+7
View File
@@ -87,6 +87,13 @@ module Liquid
@ss.pos += 1
until @ss.eos?
while byte_a != OPEN_CURLEY && byte_a != CLOSE_CURLEY && @ss.eos? == false
byte_a = @ss.peek_byte
@ss.pos += 1
end
break if @ss.eos?
byte_b = @ss.peek_byte
if byte_a == CLOSE_CURLEY && byte_b == CLOSE_CURLEY