Improved requests timings helper class #424
davenquinn
started this conversation in
Feature Request
Replies: 1 comment
-
👋 @davenquinn, sure why not 🤷♂️ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When using TiTiler within https://github.com/davenquinn/mars-tiler, I reimplemented several aspects of the
MosaicTilerFactory
to play nicely with PostgreSQL database querying for image footprints. I am currently trying to re-align some aspects of this work with the core module, and am factoring out customizations.One aspect of TiTiler's core that I have heavily modified is the
Timer
class that is used for generating debug timings. This class currently works in the context of a single rendering function, which limits its usefulness for reporting the timings of processing within renderers or post-processing subroutines.Mars-tiler's
Timer
class replacement uses Context variables to allow timings to be easily tracked in subroutines if a timer is available. It also centralizes some of the time-delta math and boilerplate for creating the appropriate response headers.Would you accept a pull request to integrate this functionality into TiTiler core?
Beta Was this translation helpful? Give feedback.
All reactions