Answer the question
In order to leave comments, you need to log in
Is it possible to direct all resources to one nodejs windows 10 process?
There is a script for node. Iterates over the array, compares, etc.
By CPU load 14%
Is it possible to somehow give it more resources to work faster?
I put all the kernels and real-time mode in the task manager, but nothing has changed.
the code
for (var i = 0, len = squareGrid.features.length; i < len; i++) {
console.log(i);
for (var p = 0, len = pins.length; p < len; p++) {
const point = turf.point([pins[p].lon, pins[p].lat])
if (turf.booleanPointInPolygon(point, squareGrid.features[i])) {
if (squareGrid.features[i].properties.hasOwnProperty('count')) {
squareGrid.features[i].properties.count++
} else {
squareGrid.features[i].properties.count = 0;
}
}
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question