Added options.maxConcurrentSymbols to specify the number of requests as the same time. If not set, use os.cpus().length but it would be better to increase that number. The CPU can handle much more Promises than its cores. The bottleneck is on the HTTP requests time where could be very lazy dealing with hundred of symbols.
Removed unnecessary
Promise.resolve()
Added
options.maxConcurrentSymbols
to specify the number of requests as the same time. If not set, useos.cpus().length
but it would be better to increase that number. The CPU can handle much more Promises than its cores. The bottleneck is on the HTTP requests time where could be very lazy dealing with hundred of symbols.