Project

General

Profile

Actions

Bug #22978

closed

Cache most current Version number to save lots of memory

Added by François ARMAND 11 months ago. Updated 10 months ago.

Status:
Released
Priority:
N/A
Category:
Architecture - Code maintenance
Target version:
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

clipboard-202307201553-urpvk.png (47.4 KB) clipboard-202307201553-urpvk.png François ARMAND, 2023-07-20 15:53

Related issues 1 (1 open0 closed)

Related to Rudder - Architecture #22672: Remove node information and inventories from LDAPPending technical reviewVincent MEMBRÉActions
Actions

Also available in: Atom PDF