change Array.map/forEach/... to for loop and gain almost x2 perf