Skip to content
Snippets Groups Projects
  • Richard van der Hoff's avatar
    44a49841
    Optimise LoggingContext creation and copying · 44a49841
    Richard van der Hoff authored
    It turns out that the only thing we use the __dict__ of LoggingContext for is
    `request`, and given we create lots of LoggingContexts and then copy them every
    time we do a db transaction or log line, using the __dict__ seems a bit
    redundant. Let's try to optimise things by making the request attribute
    explicit.
    44a49841
    History
    Optimise LoggingContext creation and copying
    Richard van der Hoff authored
    It turns out that the only thing we use the __dict__ of LoggingContext for is
    `request`, and given we create lots of LoggingContexts and then copy them every
    time we do a db transaction or log line, using the __dict__ seems a bit
    redundant. Let's try to optimise things by making the request attribute
    explicit.