Spatial-Data-Science-and-GEO-AI-Lab / GreenExp_R

This is a R toolkit and developer version package to estimate multidimensional aspects of greenness and nature exposure, such as availability, accessibility and visibility using various geospatial data and models

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Performance assumption for multicore operation

mrd opened this issue · comments

time_dif <- round(cores * ((as.numeric(difftime(Sys.time(), start_time, units = "s"))*1000) / nrow(address)), 2)

This seems to assume that there is a 1:1 inverse proportional correlation between number of 'cores' used for processing and running time. But that is not something you can assume, it would only be the case if the task was perfectly parallelisable and there were no other issues (e.g. contention on the bus).