Open walkingsnail opened 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 ...
感觉有内存泄露之处,取几十只股票的历史数据就看着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 ...