Speed up twisted.python.context by copying less data
|Reported by:||Jean-Paul Calderone||Owned by:||Jean-Paul Calderone|
branch-diff, diff-cov, branch-cov, buildbot
ContextTracker.callWithContext makes a copy of the current context and update it with the new context data. This makes
callWithContext somewhat expensive, even if no code actually loads anything from the context.
Contrariwise, it makes it easy to retrieve keys from the context, which most code doesn't bother to do.
We should reverse these, making
callWithContext as cheap as we can, even at the cost of slowing down
Change History (6)
comment:5 Changed 6 years ago by
|Owner:||changed from Ying Li to Jean-Paul Calderone|
|Status:||assigned → new|