quantopian/zipline — pull request #328 by ssanderson (2014-05-01 15:43:37+00:00)
Title: PERF: Use self.updated_portfolio instead of self.portfolio in TradingAlgorithm.

The self.portfolio property on TradingAlgorithm internally causes a refresh of
the latest portfolio data every time it's accessed. We also have an
updated_portfolio method, which only does this refresh when it's deemed
necessary. Use the latter in API convenience methods instead of the former.