Use the intern function to share the strings used to describe various key bindings. This saves both performance, code size and memory use, but there is a pathological case where the user continually changes key bindings, resulting in more allocated memory than needed.

darcs-hash:20060621140344-ac50b-c7eb89a94a96538215f9a6737f8e4bacd6a801fb.gz
This commit is contained in:
axel
2006-06-22 00:03:44 +10:00
parent 407c96e943
commit 2076944268
5 changed files with 17 additions and 26 deletions

3
main.c
View File

@@ -117,6 +117,8 @@ int main( int argc, char **argv )
char *cmd=0;
halloc_util_init();
wsetlocale( LC_ALL, L"" );
is_interactive_session=1;
program_name=L"fish";
@@ -258,7 +260,6 @@ int main( int argc, char **argv )
no_exec = 0;
}
halloc_util_init();
proc_init();
event_init();