florianf / tileoven

TileOven a maintained fork of TileMill
http://tilemill.com
BSD 3-Clause "New" or "Revised" License
106 stars 17 forks source link

Number of threads created while exporting a project #11

Closed pcoder closed 7 years ago

pcoder commented 7 years ago

I wonder how does the tileoven project know how many threads to create while doing an export of a project?

From my experimentation, I found it to be 1.5 times the number of cpu cores available in the system. But that is just an empirical value. It would be great if someone could point me to the relevant resource.

BTW, I fiddled with --concurrent but that doesn't impact the number of threads that are created for exporting a project.

Thanks.

florianf commented 7 years ago

I think you're looking for this: https://github.com/florianf/tileoven/blob/master/index.js#L4 Seems to match your empirical measured value ;-)

pcoder commented 7 years ago

Aah thanks for that info @florianf Really appreciate it

florianf commented 7 years ago

Found another one that maybe relevant: https://github.com/florianf/tileoven/blob/master/commands/export.bones#L488

pcoder commented 7 years ago

Yes, I got that one when I was investigating --concurrent but that seems different to me.