commit | 2def417a499bb979f7156d3baf52450e8168fbcf | [log] [tgz] |
---|---|---|
author | Alexandre Huff <alexandrehuff@utfpr.edu.br> | Fri Dec 17 08:04:48 2021 -0300 |
committer | Alexandre Huff <alexandrehuff@utfpr.edu.br> | Fri Dec 17 08:04:48 2021 -0300 |
tree | 14fb26e508bcd5dbe9df5e92b6f3a280c36e8aa3 | |
parent | c4591e61182c2f9b4395df2115769ef6c1dfce91 [diff] |
Fix caching of error code data not happening The state_to_status() function re-generates the mapping dict on every call, which could negatively affect performance. This change only generates the mapping dict on first call and caches it for subsequent calls. Issue-Id: RIC-862 Signed-off-by: Alexandre Huff <alexandrehuff@utfpr.edu.br> Change-Id: Ida25c5d1f08b4b82e100b6c67ffe911bb8093224