mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-07 13:50:51 +08:00
f54881cd08
When run over large amounts of data the use of ndict's gets and sets become a large bottleneck, around 1/5th of the CPU time is spent in ndict's __setattr__, __getattr__, etc. By switching to an object for an event, we reduce the penalty significantly. Removes asserts that check for event being an ndict, as well as those that assume a certain behavior of the __contains__ method for events.