mini-kep / parser-rosstat-kep

Provide clean macroeconomic time series as CSV files at stable URL
12 stars 13 forks source link

why smaller code has longer running time? #187

Open epogrebnyak opened 6 years ago

epogrebnyak commented 6 years ago

dev_timer.py will produce this output:

Exеcution time in millisecond
1) Get datapoints as list 168.9
2) Bare dataframe 183.1
3) Decorated dataframe (create_df) 407.1
4) Decorated dataframe (saver.create_base_dataframe) 241.8
5) 3 dataframes (saver.create_base_dataframe) 361.0

Why 3) runs longer than 4)?