I wrote perl program with a GTK frontend to search IIS weblogs and display the output on a GUI, And it works, except it's quite slow, almost none responsive, to scroll threw the list once it displays. Here's the deceleration
our $table = Gtk2::SimpleList->new_from_treeview ( $gui->get_widget ('Table'), 'Date' => 'markup', 'Time' => 'markup', 'IP Address' => 'markup', 'Status' => 'markup', 'WebServer' => 'markup', 'Action' => 'markup', 'URL1' => 'markup', 'URL2' => 'markup', 'Cookie Info' => 'markup'); $table->get_selection->set_mode ('multiple'); $table->get_selection->unselect_all; $table->set_reorderable (TRUE); map { $_->set_resizable (TRUE) } $table->get_columns;
and here is where i populate it
for $temp (@rArray){ my $pre; my $post = "</span>"; my ($a1,$b1,$c1,$d1,$e1,$f1,$g1,$h1) = split(/;;/,$tem +p); if ($d1 eq "200"){ $pre = "<span foreground=\"#CCCC00\">"; } if ($d1 eq "300"){ $pre = "<span foreground=\"#00FF99\">"; } if ($d1 eq "400"){ $pre = "<span foreground=\"#900000\">"; } if ($d1 eq "500"){ $pre = "<span foreground=\"#6600FF\">"; } $a1 = $pre.$a1.$post; $a1 =~ s/&/&amp;/g; $b1 = $pre.$b1.$post; $b1 =~ s/&/&amp;/g; $c1 = $pre.$c1.$post; $c1 =~ s/&/&amp;/g; $d1 = $pre.$d1.$post; $d1 =~ s/&/&amp;/g; $e1 = $pre.$e1.$post; $e1 =~ s/&/&amp;/g; $f1 = $pre.$f1.$post; $f1 =~ s/&/&amp;/g; $g1 = $pre.$g1.$post; $g1 =~ s/&/&amp;/g; $h1 = $pre.$h1.$post; $h1 =~ s/&/&amp;/g; push @{$table->{data}},[$a1,$b1,$c1,$d1,$e1,$f1,$g1,$h +1]; }
Am i doing something wrong? Does anyone have any suggestions on how to speed up the scrolling?

In reply to GTK2::SimpleList really slow by GigaRoc

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.