diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2009-10-09 19:44:23 -0700 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2009-10-09 19:44:23 -0700 |
commit | 9e85f9cee6d0d923d4d76d5f936bbcb7a0610f26 (patch) | |
tree | 44f8f49c85ccc515d7ba071de1bd7eb69f411c8b /src/dump_session.c | |
parent | 085b30c4fb0afe2dce88363b16068113c7c267c1 (diff) | |
download | vyatta-cfg-9e85f9cee6d0d923d4d76d5f936bbcb7a0610f26.tar.gz vyatta-cfg-9e85f9cee6d0d923d4d76d5f936bbcb7a0610f26.zip |
commit post-processing performance optimization
* convert subshell invocations to library function calls.
* reduce boot time by ~40 seconds for "certain configuration".
Diffstat (limited to 'src/dump_session.c')
-rw-r--r-- | src/dump_session.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dump_session.c b/src/dump_session.c index d6b85cf..db54927 100644 --- a/src/dump_session.c +++ b/src/dump_session.c @@ -45,6 +45,10 @@ int main(int argc, char** argv) { int ch; + + /* this is needed before calling certain glib functions */ + g_type_init(); + //grab inputs while ((ch = getopt(argc, argv, "dvh")) != -1) { switch (ch) { |