Jens-Heiner Rechtien <[EMAIL PROTECTED]> writes: > Well, but any reference counter increase/decrease still needs to be > atomic as long as they are not thread local? How can we replace them > with plain integer operations? > Hi Heiner,
well, when shared only within _one_ UTF2 thread-unsafe environment, you don't need to explicitely make them atomic. But see below... > > Whether we should go down that road (i.e. distinguishing between > > thread-safe and thread-unsafe ref counting all over the place) is a > > different question though... > > I really doubt that it's worth the trouble. We are talking about < 1% > gain for a potential hazardous change in case someone didn't get it > right. > Yeah, I kind of suspected such a marginal gain. Depending on policies, such a change could be made relatively safe (banning all explicit threading from normal code) - but it's probably not even worth thinking about it then... Cheers, -- Thorsten --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
