\label{doc_decisions_store_name_md_md_doc_decisions_store_name}%
\Hypertarget{doc_decisions_store_name_md_md_doc_decisions_store_name}%
 \hypertarget{doc_decisions_store_name_md_autotoc_md2023}{}\doxysection{Problem}\label{doc_decisions_store_name_md_autotoc_md2023}
Memory Consumption in Elektra is quite high as the key names are long and stored twice in memory.\hypertarget{doc_decisions_store_name_md_autotoc_md2024}{}\doxysection{Constraints}\label{doc_decisions_store_name_md_autotoc_md2024}

\begin{DoxyItemize}
\item comparing of keys and thus searching in key sets must be possible with memcmp
\end{DoxyItemize}\hypertarget{doc_decisions_store_name_md_autotoc_md2025}{}\doxysection{Assumptions}\label{doc_decisions_store_name_md_autotoc_md2025}

\begin{DoxyItemize}
\item printing the escaped key name is not so much used
\end{DoxyItemize}\hypertarget{doc_decisions_store_name_md_autotoc_md2026}{}\doxysection{Considered Alternatives}\label{doc_decisions_store_name_md_autotoc_md2026}

\begin{DoxyItemize}
\item store both
\end{DoxyItemize}\hypertarget{doc_decisions_store_name_md_autotoc_md2027}{}\doxysection{Decision}\label{doc_decisions_store_name_md_autotoc_md2027}
Only store one key name, suitable for comparing/searching/iterating over name.\hypertarget{doc_decisions_store_name_md_autotoc_md2028}{}\doxysection{Rationale}\label{doc_decisions_store_name_md_autotoc_md2028}

\begin{DoxyItemize}
\item saves memory
\item reduces API ({\ttfamily key\+Unescaped\+Name$\ast$})
\end{DoxyItemize}\hypertarget{doc_decisions_store_name_md_autotoc_md2029}{}\doxysection{Implications}\label{doc_decisions_store_name_md_autotoc_md2029}

\begin{DoxyItemize}
\item rename {\ttfamily key\+Unescaped\+Name} to {\ttfamily key\+Name}
\item To get the key\+Name you then would need something like \`{}elektra\+Encode\+Key\+Name(buffer, key\+Name(...
\end{DoxyItemize}\hypertarget{doc_decisions_store_name_md_autotoc_md2030}{}\doxysection{Related Decisions}\label{doc_decisions_store_name_md_autotoc_md2030}
\hypertarget{doc_decisions_store_name_md_autotoc_md2031}{}\doxysection{Notes}\label{doc_decisions_store_name_md_autotoc_md2031}
