Taras Kozlov

Results 7 issues of Taras Kozlov

Closes https://github.com/microsoft/picologging/issues/203 Correctly format and print LogRecord.asctime field Please merge this PR or https://github.com/microsoft/picologging/pull/209 where %f support in datefmt was also added. ``` import time import picologging as logging logging.basicConfig(format="%(levelname)s...

Closes https://github.com/microsoft/picologging/issues/184 Since libc strftime doesn't support %f specifier the implementation works it around by 1. first, creating a temporary format string for strftime where %f is replaced with actual...

Current implementation of UVStream.write almost never sends data immediately. Instead the data is stored in the buffer and picked up later by uv_check callback. This introduces unnecessary latency and CPU...

# What is this project? picows is and ultra-fast websocket client and server for asyncio https://github.com/tarasko/picows # Why is it awesome? * It is faster than any other asyncio websocket...

SSLWantReadError is expensive. https://github.com/python/cpython/issues/123954 This PR tries to predict that there will be SSLWantReadError by checking incoming.pending and SSLObject.pending() first. This check works in 99% of cases. For the rest...

From perf, callstack before the change: ``` --54.22%--__pyx_f_6uvloop_4loop___uv_stream_on_read | --52.82%--__pyx_f_6uvloop_4loop_run_in_context1 | --51.06%--cfunction_vectorcall_FASTCALL_KEYWORDS context_run | --50.49%--_PyObject_VectorcallTstate.lto_priv.18 | --50.28%--method_vectorcall | --49.45%--__pyx_pw_6picows_6picows_10WSProtocol_13data_received ``` After the change: ``` --51.71%--__pyx_f_6uvloop_4loop___uv_stream_on_read | --50.42%--__pyx_f_6uvloop_4loop_run_in_context1 | --49.13%--__pyx_pw_6picows_6picows_10WSProtocol_13data_received ```...

After profiling my app with perf I identified a couple of things that make SSLProtocol a little bit faster: * SSLProtocol.get_buffer and buffer_updated can be called directly from UVStream since...