Re: smrproxy v2

Liste des GroupesRevenir à cl c++ 
Sujet : Re: smrproxy v2
De : jseigh_es00 (at) *nospam* xemaps.com (jseigh)
Groupes : comp.lang.c++
Date : 11. Dec 2024, 13:13:30
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vjbvla$1hdui$1@dont-email.me>
References : 1 2 3 4 5 6
User-Agent : Mozilla Thunderbird
On 12/9/24 13:34, jseigh wrote:
On 11/27/24 10:29, jseigh wrote:

I'm going to drop working on the whole proxy interface thing.  The
application can decide if it wants to hardcode a dependency on a
particular 3rd party libarary implementation or abstract it out
to a more portable api.
>
 I figured out where the smr vs smrlite overhead is likely coming from.
 1) thread_local load about .3 nsecs, 2 for lock/unlock so .6 nsecs.
2) overhead from lazy initialization, about .6 nsecs.
 smrlite most of the time doesn't show any measurable overhead,
0 nsecs.
Fixed the whole thread_local issue.  Just don't use it.  I
went back to the api I was using in C and leave it up to
the app to keep track of thread local objects. Fixes the
problem of multiple proxies needing multiple per thread
objects.  This is a language issue, not an api issue.

 Theoretically, you could do do lazy initialization with zero
runtime overhead, but for most c++ apps, 1 millisecond is
considered fast, so I don't think there would be much interest
in it.
And apparantly I am right. :)
Joe Seigh

Date Sujet#  Auteur
21 Nov 24 * Re: smrproxy v217jseigh
23 Nov 24 `* Re: smrproxy v216jseigh
23 Nov 24  +* Re: smrproxy v23Chris M. Thomasson
23 Nov 24  i`* Re: smrproxy v22jseigh
24 Nov 24  i `- Re: smrproxy v21Chris M. Thomasson
24 Nov 24  `* Re: smrproxy v212jseigh
25 Nov 24   +* Re: smrproxy v27Chris M. Thomasson
25 Nov 24   i`* Re: smrproxy v26jseigh
25 Nov 24   i +* Re: smrproxy v22Chris M. Thomasson
25 Nov 24   i i`- Re: smrproxy v21Chris M. Thomasson
25 Nov 24   i `* Re: smrproxy v23Chris M. Thomasson
25 Nov 24   i  `* Re: smrproxy v22jseigh
25 Nov 24   i   `- Re: smrproxy v21Chris M. Thomasson
27 Nov 24   `* Re: smrproxy v24jseigh
9 Dec 24    `* Re: smrproxy v23jseigh
11 Dec 24     `* Re: smrproxy v22jseigh
12 Dec 24      `- Re: smrproxy v21Chris M. Thomasson

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal