]> git.ipfire.org Git - pakfire.git/commitdiff
system: Remove parallelism
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 5 Jun 2021 13:44:52 +0000 (13:44 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 5 Jun 2021 13:44:52 +0000 (13:44 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/system.py

index 631ee33b913dacfd77eb2fb793785648eaf137a3..337a9563d05306ce3ef8b61287e7d9f4a9b8499c 100644 (file)
@@ -170,23 +170,6 @@ class System(object):
        def get_mountpoint(self, path):
                return Mountpoint(path)
 
-       @property
-       def parallelism(self):
-               """
-                       Calculates how many processes should be run
-                       simulatneously when compiling.
-               """
-               # Check how many processes would fit into the
-               # memory when each process takes up to 192MB.
-               multiplicator = self.memory / (192 * 1024 * 1024)
-               multiplicator = round(multiplicator)
-
-               # Count the number of online CPU cores.
-               cpucount = os.sysconf("SC_NPROCESSORS_CONF") * 2
-               cpucount += 1
-
-               return min(multiplicator, cpucount)
-
 
 # Create an instance of this class to only keep it once in memory.
 system = System()