On Mon, Mar 19, 2012 at 1:07 AM, Matthew Mondor
<[email protected]> wrote:

>> Well, the system seems quite faster using --with-__threads=no so far.

The last time I looked closely at ECL performance (on x86 Linux,
admittedly a couple years ago), threaded builds wasted a tremendous
amount of time in ecl_process_env doing a TLS lookup via
pthread_getspecific at the entry of every function (compare with
non-threaded builds, which simply load the pointer from a global
variable). I wonder if you're seeing this, or something else.

It always bummed me out that changing ECL to use GCC's __thread was
only somewhat faster, because code in shared objects didn't get the
fast segment-based TLS lookup that GCC does for code compiled directly
into an executable (I think being non-PIC might also be relevant; I
forget the details, but I do recall hacking ECL to ensure code linked
into my executable was non-PIC). I'm sure ECL would see a nice gain by
passing the environment pointer directly as a function argument (in
the fashion of GHC's LLVM backend, minus the custom calling
convention), but it would be an intrusive change. Static linking would
fix the problem too, but.. LGPL. =/

I've probably mentioned all this before; if so, apologies for repeating myself.

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Ecls-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ecls-list

Reply via email to