mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-15 08:50:45 -07:00
more micro optimization
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user