Better HN
topnewbestaskshowjobs
Log inSign up

jtmcivor

2 karma · joined May 22, 2025 (1y ago) · 3 submissions

Submissions

comment 10mo ago · link · parent

Code is deployed in containers. Improved capabilities to debug those systems will be really helpful to me (and I'm sure many others). Recreating real-world state locally takes effort and is error prone

comment 1y ago · link · parent

IIUC:

* You still need to load all the bytes into memory before passing to msgspec decoding

* You can decode a subset of fields, which is really helpful

* Reusing msgspec decoders saves some cpu cycles https://jcristharif.com/msgspec/perf-tips.html#reuse-encoder...

Slides 17, 18, 19 have an example of the first two points https://pythonspeed.com/pycon2025/slides/#17

comment 1y ago · link · parent

One approach to do that in msgspec is described here https://github.com/jcrist/msgspec/issues/375#issuecomment-15...