David Montague
David Montague
> @dmontagu what do you think of this? I might also help with #692? Sorry, for some reason I didn't notice this sooner ------ * Yes, I like this idea,...
@dgasmith I'm assuming you mean serializing to a JSON array of numbers? If serialization speed is an issue, I would think base64 encoding the raw bytes of the array (along...
I see, thanks for sharing, yeah that definitely seems worthwhile for certain applications if you are willing to ditch JSON. However, in this case, I *still* think you'd be better...
A couple tangential profiling-related notes that may be of interest to anyone working with "50MBs of JSON"-sized payloads: Click to expand * Serialization may *also* involve two (potentially very costly!)...
Haha, that's some heavy pydantic! Yappi is able to track threads appropriately; I'm wondering if there is a way to use async contextvars in python 3.7 to achieve similar functionality....
Aha! It looks like you can override the context id callback with yappi! See here: https://github.com/sumerc/yappi/blob/master/yappi.py#L938 I think we could use a contextvar for this and should be able to...
I think there is a package called `aiocontextvars` which works with python 3.6. This is what I have in mind: ```python from contextvars import ContextVar from typing import Dict import...
Potential problems: 1. I can't figure out how to track time spent awaiting async calls -- clearly that isn't showing up in the printouts of the endpoint duration. Using `yappi.set_clock_type("wall")`...
@sumerc Thanks for all the help! This may well solve the problem; I'll try it out. @sm-Fifteen I'm running it in Python 3.7; is that a difference? Maybe try using...
I personally would be in favor of adding a "table of contents"-style page for OpenAPI-related functionality (and perhaps also other groups of functionality that are spread across different pages).