develooper Front page | perl.perl6.internals | Postings from December 2001

Re: [PATCH] Thread Local Storage

Thread Previous | Thread Next
From:
Dan Sugalski
Date:
December 23, 2001 12:54
Subject:
Re: [PATCH] Thread Local Storage
Message ID:
5.1.0.14.2.20011223155240.01fa3480@pop.sidhe.org
At 11:42 AM 12/22/2001 -0500, Jason Gloudon wrote:
>Here is a big diff that removes the interpreter argument from vtable function
>calls, and creates macros for obtaining the pointer to an interpreter 
>structure
>for the current thread from thread local storage, assuming only that there is
>one interpreter per thread. It works on unixish systems with pthread, on
>mswin32, and systems with no threading (using a global variable). There is no
>code here for creating threads etc., this is just intended to eliminate
>gratuitous passing of the interpreter pointer to places it is not needed.
>Currently it gives a small but consistent increase in the PMC mops figure of
>about 5 percent.

Thanks--I'll look at this and apply it, I think. (and 5% is definitely 
anything but small...)

					Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
dan@sidhe.org                         have teddy bears and even
                                      teddy bears get drunk


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About