rc-list - mailing list for the rc(1) shell
 help / color / mirror / Atom feed
* Re: Dynamically loading readline on demand (was Re: rc futures)
@ 2000-01-14 11:11 Bengt Kleberg
  0 siblings, 0 replies; 7+ messages in thread
From: Bengt Kleberg @ 2000-01-14 11:11 UTC (permalink / raw)
  To: haahr, tjg; +Cc: rc

> From: Paul Haahr <haahr@jivetech.com>

> > Tim Goodwin wrote

> > Here are the results I got on my 200MHz Linux PC (us = microseconds).
 
> >     rc.static      744us
> >     rc.rl.static   865us
> >     rc.dynamic    1071us
> >     rc.rl.dynamic 1442us

> A ~30% performance
> penaly doesn't seem like that much if it's saving enough by sharing the
> library with other clients.

I would disagree here. I start rc scripts from wily all the time. They are really short
and my SS2 needs all the help it can get to make things faster.

Ofcourse, I do not use readline and run the scripts in sequence, so the memory savings would 
not be great (or?, what sizes accompany the rc.static, rc.dynamic, xxx)

> bloat in libraries is probably a good thing

Yes, I agree here. But a shell is special, (my usage of rc is special :-) it is started lots of times, finnishes
quickly and is not run many times in parallell.


Best Wishes, Bengt
===============================================================
Everything aforementioned should be regarded as totally private
opinions, and nothing else. bengt@softwell.se
``His great strength is that he is uncompromising. It would make
him physically ill to think of programming in C++.''


^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: Dynamically loading readline on demand (was Re: rc futures)
@ 2000-01-07 10:38 Bengt Kleberg
  0 siblings, 0 replies; 7+ messages in thread
From: Bengt Kleberg @ 2000-01-07 10:38 UTC (permalink / raw)
  To: rc, tjg

> 1. Modify the INSTALL documentation; we should always recommend linking statically.

> 2. Modify configure.in, so that, if we are using gcc, `-static' is specified.

Yes. To both.


^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: rc futures
@ 1999-12-15 16:32 Russ Cox
  2000-01-05 11:59 ` Dynamically loading readline on demand (was Re: rc futures) Tim Goodwin
  0 siblings, 1 reply; 7+ messages in thread
From: Russ Cox @ 1999-12-15 16:32 UTC (permalink / raw)
  To: rc

> 23. Dynamically load readline only when rc is about to read from a
> terminal device.  This would mean that a single rc binary would be
> lean and fast for scripts, but still do readline for interactive use.
> However, I suspect that the effort involved in making this happen
> portably would be considerable.

What operating system doesn't demand-load the binaries anyway?
If you're not using the readline code, (the large majority of) it won't
be resident in memory.

And furthermore surely your OS is sharing text pages, so as long
as there is one rc binary running on a terminal, you've already got
it loaded and there's no penalty for running more or for running
scripts.

As Byron said, the mind boggles.

Russ



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2000-01-14 20:32 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-01-14 11:11 Dynamically loading readline on demand (was Re: rc futures) Bengt Kleberg
  -- strict thread matches above, loose matches on Subject: below --
2000-01-07 10:38 Bengt Kleberg
1999-12-15 16:32 rc futures Russ Cox
2000-01-05 11:59 ` Dynamically loading readline on demand (was Re: rc futures) Tim Goodwin
2000-01-01  0:22   ` Paul Haahr
2000-01-14 16:26     ` Tim Goodwin
2000-01-14 19:18       ` Paul Haahr
2000-01-13  0:19   ` Jeremy Fitzhardinge

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).