Saltclass performance #48167
Labels
Bug
broken, incorrect, or confusing behavior
severity-medium
3rd level, incorrect or bad functionality, confusing and lacks a work around
Milestone
Description of Issue/Question
As noted in the #42349 (comment), the performance is significantly degraded
Setup
Amount of reclass files:
Steps to Reproduce Issue
Salt 2017.7.0, reclass:
Salt 2018.3.1, saltclass
Almost 50% of the time is spent in
get_class
doing this over and over for each classBy applying dirty hack (not suitable for PR) I was able to cut run time from 6,136 to 3,456 seconds:
How to get these graphs:
Then use qcachegrind or kcachegrind to open
callgrind.calltree
Versions Report
salt --versions-report
Salt Version: Salt: 2018.3.1Dependency Versions:
cffi: Not Installed
cherrypy: Not Installed
dateutil: Not Installed
docker-py: Not Installed
gitdb: Not Installed
gitpython: Not Installed
ioflo: Not Installed
Jinja2: 2.8
libgit2: Not Installed
libnacl: Not Installed
M2Crypto: Not Installed
Mako: Not Installed
msgpack-pure: Not Installed
msgpack-python: 0.5.6
mysql-python: Not Installed
pycparser: Not Installed
pycrypto: 2.6.1
pycryptodome: Not Installed
pygit2: Not Installed
Python: 2.7.15 (default, May 2 2018, 00:53:27)
python-gnupg: Not Installed
PyYAML: 3.11
PyZMQ: 17.0.0
RAET: Not Installed
smmap: Not Installed
timelib: Not Installed
Tornado: 4.5.3
ZMQ: 4.1.6
System Versions:
dist:
locale: UTF-8
machine: x86_64
release: 17.6.0
system: Darwin
version: 10.13.5 x86_64
The text was updated successfully, but these errors were encountered: