Skip to content Skip to sidebar Skip to footer
Showing posts with the label Performance

Python Function Slows Down With Presence Of Large List

I was testing the speeds of a few different ways to do complex iterations over some of my data, and… Read more Python Function Slows Down With Presence Of Large List

Reading Huge File In Python

I have a 384MB text file with 50 million lines. Each line contains 2 space-separated integers: a ke… Read more Reading Huge File In Python

String Performance - Python 2.7 Vs Python 3.4 Under Windows 10 Vs. Ubuntu

Use case A simple function which checks if a specific string is in another string at a position whi… Read more String Performance - Python 2.7 Vs Python 3.4 Under Windows 10 Vs. Ubuntu

Marshal Dumps Faster, Cpickle Loads Faster

I'm implementing a program that needs to serialize and deserialize large objects, so I was maki… Read more Marshal Dumps Faster, Cpickle Loads Faster

Optimize Parsing File With Json Objects In Pandas Dataframe, Where Keys May Be Missing In Some Rows

I'm looking to optimize the code below which takes ~5 seconds, which is too slow for a file of … Read more Optimize Parsing File With Json Objects In Pandas Dataframe, Where Keys May Be Missing In Some Rows

Why Does This Python Multiprocessing Script Slow Down After A While?

Building on the script from this answer, I have the following scenario: A folder containing 2500 la… Read more Why Does This Python Multiprocessing Script Slow Down After A While?