shidenggui / easyhistory

用于获取维护股票的历史数据
161 stars 124 forks source link

内存泄露? #25

Open walkingsnail opened 6 years ago

walkingsnail commented 6 years ago

感觉有内存泄露之处,取几十只股票的历史数据就看着python消耗的内存涨了3个G,也许是rqalpha的问题:

objgraph.show_growth() weakref 8820 +1

for i in stock_codes[:20]: try: df = easyhistory.history(i[:-5]) except Exception as e: pass

objgraph.show_growth() list 469391 +433451 Instrument 193160 +183502 ...