unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* guile-2.9.1 impressions
@ 2018-12-06  3:56 Linas Vepstas
  2018-12-06  5:21 ` Linas Vepstas
  0 siblings, 1 reply; 6+ messages in thread
From: Linas Vepstas @ 2018-12-06  3:56 UTC (permalink / raw)
  To: Guile User, Guile Development

So I pulled guile-2.9.1(beta) today, and gave it a spin. Looks
good/great! One bug -- some crazy multithreading bug,
reported as #33641

My use case: guile calling C++ code, which calls guile, which
calls C, ad nauseum. I have some 133 unit tests, of which
maybe 3/4ths tweak guile in some way. All but the
multi-threading pass, so happy!

Some comments about performance in this crazy-quilt
mixed environment. Most of code, both guile and C/C++
is fairly "thin", not doing a whole lot, before transitioning
into the other language. Thus, the performance is dominated
by the cost of the switch.

There are two different switches: from C++ to guile, and
from guile to C++.  For the first, I'm seeing a rate of about
30K  switches/sec C++ into guile (and back, this includes the return).

Calls going the other way are about 800K switches/sec
from guile into C++ (this also includes the return).   This is
on a 2014-vintage machine.

Clearly a big difference between the two. Many years ago,
I profiled this, but don't recall the results. The profile did not
reveal anything I could control very much or at all.

Thus, In this scenario, I don't really expect the gnu lightning
bytecode to affect performance very much; I'm mostly
bottlnecked in the switching of environments.

FWIW, I'm seeing speedups of 1x to 1.5x for interpreted
mode, and 1.3x to 2x for compiled code. Don't read too
much into these numbers: They're crazy mixes of calls
going in both directions.  But still, that's really quite good,
all things considered!

-- Linas

I cc'ed both guile-user and guile-devel; I'm not subscribed
to guile-devel, but also I did not see a 2.9.1-beta announce
on guile-user!
-- 
cassette tapes - analog TV - film cameras - you



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

end of thread, other threads:[~2019-05-28  1:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-06  3:56 guile-2.9.1 impressions Linas Vepstas
2018-12-06  5:21 ` Linas Vepstas
2019-05-23 19:28   ` Andy Wingo
2019-05-26 13:40     ` Linas Vepstas
2019-05-27  4:40       ` Linas Vepstas
2019-05-28  1:49         ` Linas Vepstas

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 read-only IMAP folder(s) and NNTP newsgroup(s).