optimize ram, improvement in affinity stats generating time, add new param in config (generate_time)
Merge remote-tracking branch 'origin/master'