Skip to content

Commit c0e4278

Browse files
committed
Limit number of rsvg threads.
librsvg uses rayon (rust) for parallelism. By default the number of threads spawned is up to the number of logical CPU cores, which is excessive, as they never get released once spawned.
1 parent 36eba60 commit c0e4278

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

usr/lib/linuxmint/mintinstall/mintinstall.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3171,5 +3171,9 @@ def _adjust_position(self):
31713171

31723172
if __name__ == "__main__":
31733173
os.system("mkdir -p %s" % imaging.SCREENSHOT_DIR)
3174+
3175+
if os.environ.get("RAYON_NUM_THREADS") is None:
3176+
os.environ["RAYON_NUM_THREADS"] = "2"
3177+
31743178
app = Application()
31753179
app.run(sys.argv)

0 commit comments

Comments
 (0)