Files
catalyst/tests
Eddie Hebert dba0a99a16 PERF: Use specific methods for processing events.
By having both the trade simulation main loop route events to "process"
methods based on event type and the process methods also checking event
type, there was some duplicated effort in doing that comparison many
times.

A particular case where this was noted in profiling was for the
`process_event` function which was checking if the type was not a trade
and returning early, when in a larger universe of stocks the value
returned False 99% of the time.

Instead provide separate process functions specific to each type,
e.g. e.g. `process_trade` and `process_transaction` and route traffic to
those functions in tradesimulation.

For a universe of 160 stocks on both no-op algo and an algo that rebuys
its universe every day, saw about a 10% increase locally.

Also:

- Add process_benchmark to blotter since internal subclass relies on
logic on benchmark, this allows the internal process_trade to be a
`pass`.

- Add warning on unrecoginzed event types.
2015-05-08 12:44:32 -04:00
..
2015-04-16 17:09:14 -04:00
2015-04-10 15:19:54 -04:00
2015-03-19 17:21:25 -04:00
2012-05-09 13:34:13 -04:00
2015-03-19 17:21:25 -04:00
2015-03-19 17:21:25 -04:00
2015-05-01 11:03:01 -04:00
2015-05-01 11:03:01 -04:00
2014-05-07 15:34:41 -04:00
2015-04-30 14:31:01 -04:00
2015-03-19 17:21:25 -04:00
2015-05-01 11:03:01 -04:00
2015-05-01 11:03:01 -04:00