Actions
Bug #22978
closedCache most current Version number to save lots of memory
Status:
Released
Priority:
N/A
Assignee:
Category:
Architecture - Code maintenance
Target version:
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
Checked
Regression:
No
Description
We have a version object used in several part of rudder (for os version, packages, etc) - several time by node.
If we cache the N (50 ? 100?) first integer, we save a lot of space (more once everything node related will be in nodefact, but already a bit).
It doesn't change anything in the Version API, parsing, etc. Just reuse common number in place of creating lots of short lived objects.
Files
Actions