pynetbox
pynetbox copied to clipboard
Draft: Speed improvements
Fixes: #658 #625
Various refactoring allows for a substantial increase in performance of the Record initialization.
_parse_valueswas heavily refactored to avoid multiple similar checks and unnecessary processing- in turn,
get_returnnow only needs to work onRecordobject and drops legacy code from Netbox 2.7 _endpoint_from_urlcan work with string instead of using theurlsplitlibrary- finally caching of apps/endpoints avoid constant reinstantiation of similar objects