Skip to content

Instantly share code, notes, and snippets.

@itsff
Created March 3, 2015 17:59
Show Gist options
  • Save itsff/4682b8fe289a54198430 to your computer and use it in GitHub Desktop.
Save itsff/4682b8fe289a54198430 to your computer and use it in GitHub Desktop.
Optimization test
pub.Symbol = src.Symbol
pub.Trade = src.Trade
pub.Ask = src.Ask
if src.MsgType == "D"
if src.BatCode == "B"
pub.Junk = veh.Bid
pub.Bid = 123
end
end
if src.MsgType == "D" and src.BatCode == "B"
pub.Ask = src.Ask
veh.Ask = src.Ask
end
if src.MsgType == "Z" and src.BatCode == "B"
pub.Junk = "abc"
pub.Trade = "trade"
end
if src.MsgType == "D" and src.BatCode == "B"
pub.Junk = "DB"
pub.Trade = "DBT"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment