Details
-
Type:
Improvement
-
Status: Closed
-
Priority:
Normal
-
Resolution: Fixed
-
Affects Version/s: None
-
Component/s: None
-
Labels:None
-
Template:customfield_10700 237933
-
Epic Link:
-
Team:Server
-
Sprint:Platform Core KANBAN
-
Release Notes:Not Needed
-
Release Notes Summary:Internal performance related issue - not user facing.
-
QA Risk Assessment:Needs Assessment
Description
The use of exceptions here https://github.com/puppetlabs/puppet/blob/master/lib/puppet/parser/scope.rb#L530-L543 when running in :warning mode (the default) is slow on JRuby. With a single undefined variable referenced in my hiera hierarchy I found handling this without exceptions resulted in a 20% runtime improvement.
I suspect both the throw and the exceptions are unnecessary.