Skip to content
This repository was archived by the owner on May 26, 2025. It is now read-only.

Caching

Andrewerr edited this page Jan 27, 2020 · 1 revision

Caching

Abstract

Since packet_t has options in hashtable which is not fast enough to check this options while performing DoS attack it should be cached. So there should be implemented generic object caching.

Expected implementation

There should be created array_t to store custom packet structures. Each module should have function that puts packet in cache and returns it's id. So in this way we could get packet_t structure with complexity O(1). Also should create functions cache_put and cache_get in core part of program which will implement putting packet in cache and getting it from there.

Clone this wiki locally