Tk slow over remote connections

From: James Allen (malveka_at_yahoo.com)
Date: 03/31/04


Date: 31 Mar 2004 11:18:51 -0800

Hi,

I suspect this topic has been discussed before, but my searches of the
group have turned up only passing references to the problem I am
observing.

My group recently re-wrote a portion of our GUI in Tcl/Tk, while
leaving other portions (which run in separate processes) in C/Motif/X.
 Overall the effort was fairly successful, and most of us have become
rather enamoured of Tcl/Tk.

A problem that we are seeing, however, and which is being reported by
our users, is that the Tcl/Tk portion of the GUI runs with incredibly
painful slowness over remote connections.

For example, when working from home I connect via a cable modem and
establish a VPN session with my workplace. I have tried both XWin-32
and Exceed and the results are the same. The portions of our GUI
written in C/Motif/X are, with some grinding of teeth, usable. The
portion written in Tcl/Tk is completely unusable. The difference is
quite striking.

I know that X protocol over any sort of "low bandwidth" connection is
painful, but the difference between the Tcl/Tk GUI and the C/Motif GUI
puzzles me.

I have experimented with other Tcl/Tk programs, such as tkdiff, and
find they have the same behavior. My subjective impression is that Tk
may be making inefficient use of X. I've noticed that popping-up a Tk
window will result in parts of the window (e.g. pull down menu)
redrawing over and over and over before the window is completely
rendered.

I'm wondering if there are any X server extensions that may be missing
from my X emulators that Tk relies upon. I've tried using dxpc to
compress the X protocol stream, but that didn't help.

Can anyone offer me any insight into this problem and what might be
done to fix it?

Thanks!

James Allen



Relevant Pages

  • Re: Tk slow over remote connections
    ... >rather enamoured of Tcl/Tk. ... >portion written in Tcl/Tk is completely unusable. ... >window will result in parts of the window ... Do you understand what I mean by "use VNC"? ...
    (comp.lang.tcl)
  • Re: How do old-school emacs/gcc/gdb hackers do their coding?
    ... write portable code, that runs on windows, linux, solaris etc. ... For gui, I dabbled with using tcl/tk combined with C code to build a portable ...
    (comp.os.linux.development.apps)
  • Re: How to bring PHP to the desktop? (GUI) / no browser?
    ... There is Glade for building gui's. ... Firstly, I agree that Java would be a better choice to build GUI, but I like PHP a lot more these days. ... As I understand it I can run Glade on my *nix box, and let it generate a XML file that contains the instructions for TCL/TK to build the GUI. ...
    (comp.lang.php)
  • Re: is tcl/tk dying out?!
    ... I've made Tcl/Tk ... While Python is a good langauge, its Tkinter GUI ... (Though Perl is just as bad if not worse...how long has Perl 6.0 ... bindings to lots of GUI toolkits, but those toolkits are ...
    (comp.lang.tcl)
  • Re: How to add a Tk GUI to a C program.
    ... "M> I have a C program, to which I want to add a GUI. ... process with an existing command line argument set (or a simple Q&A ... to a particular Tcl/Tk release. ... # LogWindow is something like a text widget ...
    (comp.lang.tcl)