OpenVAS Libraries  9.0.1
Data Fields
name_cache Struct Reference

Struct to cache names (keys) of arglist entries. More...

Data Fields

char * name
 
int occurences
 
struct name_cachenext
 
struct name_cacheprev
 

Detailed Description

Struct to cache names (keys) of arglist entries.

A lot of entries in our arglists have the same name. We use a caching system to avoid to allocate twice the same name

This saves about 300Kb of memory, with minimal performance impact

Field Documentation

◆ name

char* name_cache::name

◆ next

struct name_cache* name_cache::next

◆ occurences

int name_cache::occurences

◆ prev

struct name_cache* name_cache::prev

The documentation for this struct was generated from the following file: