[padb-devel] [padb] r281 committed - When viewing stack vars in tree mode only pass back the list of vars...
codesite-noreply at google.com
codesite-noreply at google.com
Thu Oct 8 12:04:42 BST 2009
Revision: 281
Author: apittman
Date: Thu Oct 8 04:04:19 2009
Log: When viewing stack vars in tree mode only pass back the list of vars
if it's non-empty. This saves a small amount of needless network
traffic in some cases.
http://code.google.com/p/padb/source/detail?r=281
Modified:
/trunk/src/padb
=======================================
--- /trunk/src/padb Thu Oct 8 03:48:22 2009
+++ /trunk/src/padb Thu Oct 8 04:04:19 2009
@@ -6713,8 +6713,10 @@
$loc->{value} );
}
}
- target_key_pair( $vp, "$l|locals",
- join( q{,}, sort @local_names ) );
+ if ( @local_names > 0 ) {
+ target_key_pair( $vp, "$l|locals",
+ join( q{,}, sort @local_names ) );
+ }
}
if ( $carg->{stack_shows_params} ) {
@@ -6735,8 +6737,10 @@
$par->{value} );
}
}
- target_key_pair( $vp, "$l|params",
- join( q{,}, @param_names ) );
+ if ( @param_names > 0 ) {
+ target_key_pair( $vp, "$l|params",
+ join( q{,}, @param_names ) );
+ }
}
} else {
if ( $carg->{stack_shows_params} ) {
More information about the padb-devel
mailing list