[Q] "Terminal" application slow when called from Carbon apps

[Q] "Terminal" application slow when called from Carbon apps

Post by Rolf Marvi » Fri, 07 Nov 2003 04:43:46


I run (or try to) *** from whitin Emacs. I have experienced,
generally, that when Carbon apps call "Terminal" apps, the "TerminaL"
app runs extremely slow. when called from Terminal (which is a Carbon
app, to add to confusion), *** runs with normal speed.

any clues?

thank you,

--
Rolf Lindgren http://www.yqcomputer.com/
XXXX@XXXXX.COM
 
 
 

[Q] "Terminal" application slow when called from Carbon apps

Post by Tom Harrin » Fri, 07 Nov 2003 12:24:41

In article < XXXX@XXXXX.COM >,



Just a guess, but the Carbon apps might not be reading output from the
sub-processes as quickly as it's produced. If the sub-process is
writing to standard output or standard error (as it probably is), it'll
get blocked on I/O if the parent process doesn't keep reading its
output. Terminal just dumps it to the screen pretty quickly. The
Carbon apps you're using might not be dealing with this properly.

--
Tom "Tom" Harrington
Macaroni, Automated System Maintenance for Mac OS X.
Version 1.4: Best cleanup yet, gets files other tools miss.
See http://www.yqcomputer.com/

 
 
 

[Q] "Terminal" application slow when called from Carbon apps

Post by Rolf Marvi » Sat, 08 Nov 2003 00:02:02

[Tom Harrington]

| Just a guess, but the Carbon apps might not be reading output from the
| sub-processes as quickly as it's produced. If the sub-process is
| writing to standard output or standard error (as it probably is), it'll
| get blocked on I/O if the parent process doesn't keep reading its
| output. Terminal just dumps it to the screen pretty quickly. The
| Carbon apps you're using might not be dealing with this properly.

it seems likely, the main problem is with i/o-heavy applications, like
LaTeX, which does nothing but read and write.

is there anything I could do except call the programmer and make them
fix their code?

--
Rolf Lindgren http://www.yqcomputer.com/
XXXX@XXXXX.COM
 
 
 

[Q] "Terminal" application slow when called from Carbon apps

Post by Tom Harrin » Sat, 08 Nov 2003 02:58:43

In article < XXXX@XXXXX.COM >,



Well, you did specifically mention Emacs. That's GPL, so you could
presumably get the source code and fix it yourself. But one way or
another it'll require some source-level fixing.

Does this happen in non-Carbonized versions of Emacs?

--
Tom "Tom" Harrington
Macaroni, Automated System Maintenance for Mac OS X.
Version 1.4: Best cleanup yet, gets files other tools miss.
See http://www.yqcomputer.com/
 
 
 

[Q] "Terminal" application slow when called from Carbon apps

Post by Rolf Marvi » Sat, 08 Nov 2003 06:02:59

[Tom Harrington]

| Well, you did specifically mention Emacs. That's GPL, so you could
| presumably get the source code and fix it yourself.

hm. I'd probably have to learn programming first. above the trivial
level, I mean. ;)

| Does this happen in non-Carbonized versions of Emacs?

I tried emacs -nw, which is the same Emacs, as it were, but presumably
running without Carbon, and yes, it did *not* happen there.

either Carbon is flawed, which could mean one fix would fit all, or
programmers don't use Carbon right.

thanks for putting me on the right track!

--
Rolf Lindgren http://www.yqcomputer.com/
XXXX@XXXXX.COM
 
 
 

[Q] "Terminal" application slow when called from Carbon apps

Post by usene » Sat, 08 Nov 2003 09:56:43


You could presumably email the author (or project manager or whoever)
and tell them what's up. They might fix the problem, and everyone would
benefit. :-)