latency

Efficiently processing ~50 million record file in python

Efficiently processing ~50 million record file in python Question: We have a file with about 46 million records in CSV format. Each record has about 18 fields and one of them is a 64 byte ID. We have another file with about 167K unique IDs in it. The records corresponding to the IDs needs to …

Total answers: 4

How to prefetch data using a custom python function in tensorflow

How to prefetch data using a custom python function in tensorflow Question: I am trying to prefetch training data to hide I/O latency. I would like to write custom Python code that loads data from disk and preprocesses the data (e.g. by adding a context window). In other words, one thread does data preprocessing and …

Total answers: 2

Python logging causing latencies?

Python logging causing latencies? Question: I’m developing a real-time REST API using Python3+bottle/UWSGI. I was experiencing latencies in my code, sometimes 100s of ms, which does matter in my app. Using logging module, I was trying to identify slow parts of my code, printing how long individual codeblocks took to run. I know this is …

Total answers: 4