Skip to content
Snippets Groups Projects
Commit 3f345ecb authored by Eric Vidal's avatar Eric Vidal :speech_balloon:
Browse files

Resolve read/write can be faster.

At write time:
  - Add the whole sa to the new cdb field named sa instead of storing the key one by one.
  - Store uniquely the uint of the key instead of appending a string.

At read time:
  - Do not build again the sa looking for the cdb value but read the whole sa instead.
  - Do not use extra HEAP memory allocation.
At modification time:
  - Sanitize the resolve by writting the sa from scratch.
  - Use /tmp directory as temporary cdb file.
Replace resolve_find_cdb by the resolve_get_key and resolve_get_sa function.
Replace service_resolve_copy by service_resolve_sanitize.
parent fb8c90b0
No related branches found
No related tags found
Loading
Showing
with 386 additions and 414 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment