From b2762cf5d8549396bc2d4f425a7f0120eb70da67 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Wed, 27 Apr 2011 14:36:51 +0000 Subject: [PATCH] Saved some CPU cycles when adding wide directory trees --- xorriso/iso_manip.c | 6 +++++- xorriso/xorriso_timestamp.h | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/xorriso/iso_manip.c b/xorriso/iso_manip.c index a242bc2f..b9751a14 100644 --- a/xorriso/iso_manip.c +++ b/xorriso/iso_manip.c @@ -406,7 +406,11 @@ cannot_lstat:; /* does a node exist with this name ? */ node= NULL; - ret= Xorriso_node_from_path(xorriso, volume, img_path, &node, 1); + if(dir != NULL) { + ret= iso_dir_get_node(dir, img_name, &node); + } else { + ret= Xorriso_node_from_path(xorriso, volume, img_path, &node, 1); + } if(ret>0) { target_is_dir= LIBISO_ISDIR(node); target_is_split= 0; diff --git a/xorriso/xorriso_timestamp.h b/xorriso/xorriso_timestamp.h index 065d1a29..f3fc4e68 100644 --- a/xorriso/xorriso_timestamp.h +++ b/xorriso/xorriso_timestamp.h @@ -1 +1 @@ -#define Xorriso_timestamP "2011.04.23.152348" +#define Xorriso_timestamP "2011.04.27.143713"