diff scripts/help/print_usage.m @ 20778:8513c84a13cb

Use parser string concatenation rather than strcat() for performance in m-files. * __file_filter__.m, __get_funcname__.m, uigetfile.m, uiputfile.m, __makeinfo__.m, print_usage.m, fix_version.m, axis.m, __add_datasource__.m, print.m, __gnuplot_draw_axes__.m, __gnuplot_print__.m, __opengl_print__.m, __print_parse_opts__.m, saveas.m, html_compare_plot_demos.m: Use parser string concatenation rather than strcat() for performance in m-files.
author Rik <rik@octave.org>
date Mon, 30 Nov 2015 08:20:08 -0800
parents 7503499a252b
children 516bb87ea72e
line wrap: on
line diff
--- a/scripts/help/print_usage.m	Mon Nov 30 09:15:58 2015 -0500
+++ b/scripts/help/print_usage.m	Mon Nov 30 08:20:08 2015 -0800
@@ -116,9 +116,9 @@
     for k = 1:length (def_idx)
       endl = endl_idx(find (endl_idx > def_idx(k), 1));
       if (isempty (endl))
-        buffer = strcat (buffer, help_text (def_idx(k):end), "\n");
+        buffer = [buffer, help_text(def_idx(k):end), "\n"];
       else
-        buffer = strcat (buffer, help_text (def_idx(k):endl));
+        buffer = [buffer, help_text(def_idx(k):endl)];
       endif
     endfor
   else