mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-20 03:10:39 -07:00
more micro optimization
This commit is contained in:
@@ -87,6 +87,13 @@ module Liquid
|
|||||||
@ss.pos += 1
|
@ss.pos += 1
|
||||||
|
|
||||||
until @ss.eos?
|
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
|
byte_b = @ss.peek_byte
|
||||||
|
|
||||||
if byte_a == CLOSE_CURLEY && byte_b == CLOSE_CURLEY
|
if byte_a == CLOSE_CURLEY && byte_b == CLOSE_CURLEY
|
||||||
|
|||||||
Reference in New Issue
Block a user