Telegram Group & Telegram Channel
Кресты на моей кукухе
Автор вспомнил, что это канал про lock-free очередь его мечты (ну не прям lock-free, честный lock-free сложно и не нужен) Заимплементил-таки схему bitset + queue вместо queue + queue.Предварительный результат радует. График — гистограмма задержек на запись…
Некрасивая метрика, проблему с которой я сходу (к своему стыду) не понял — время от отправки сообщения до его чтения. На старой очереди это было <1 мкс, на новой >40мкс в медиане. Ночью меня осенило: я же разогнал писателей. Читатель снова стал захлёбываться. Докинул nop'ов ~пропорционально уменьшению во времени прохождения бенча — метрика более-менее нормализовалась. С этим разобрался

Пишем быстрее! Получилось срезать ~ 70нс (~20%) в медиане и в среднем. Быстрее и на 99-м перцентиле, хоть и немного

С чтением неоднозначно(9( Чуть лучше в медиане, чуть хуже в среднем (~7% тудым/сюдым). Хуже на высоких перцентилях на 10-15%. В общем, скорее хуже

При том, что мне хочется минимально тормозить писателя, трейдофф приемлемый



group-telegram.com/no_brain_cpp/539
Create:
Last Update:

Некрасивая метрика, проблему с которой я сходу (к своему стыду) не понял — время от отправки сообщения до его чтения. На старой очереди это было <1 мкс, на новой >40мкс в медиане. Ночью меня осенило: я же разогнал писателей. Читатель снова стал захлёбываться. Докинул nop'ов ~пропорционально уменьшению во времени прохождения бенча — метрика более-менее нормализовалась. С этим разобрался

Пишем быстрее! Получилось срезать ~ 70нс (~20%) в медиане и в среднем. Быстрее и на 99-м перцентиле, хоть и немного

С чтением неоднозначно(9( Чуть лучше в медиане, чуть хуже в среднем (~7% тудым/сюдым). Хуже на высоких перцентилях на 10-15%. В общем, скорее хуже

При том, что мне хочется минимально тормозить писателя, трейдофф приемлемый

BY Кресты на моей кукухе






Share with your friend now:
group-telegram.com/no_brain_cpp/539

View MORE
Open in Telegram


Telegram | DID YOU KNOW?

Date: |

But because group chats and the channel features are not end-to-end encrypted, Galperin said user privacy is potentially under threat. Telegram has become more interventionist over time, and has steadily increased its efforts to shut down these accounts. But this has also meant that the company has also engaged with lawmakers more generally, although it maintains that it doesn’t do so willingly. For instance, in September 2021, Telegram reportedly blocked a chat bot in support of (Putin critic) Alexei Navalny during Russia’s most recent parliamentary elections. Pavel Durov was quoted at the time saying that the company was obliged to follow a “legitimate” law of the land. He added that as Apple and Google both follow the law, to violate it would give both platforms a reason to boot the messenger from its stores. Artem Kliuchnikov and his family fled Ukraine just days before the Russian invasion. Official government accounts have also spread fake fact checks. An official Twitter account for the Russia diplomatic mission in Geneva shared a fake debunking video claiming without evidence that "Western and Ukrainian media are creating thousands of fake news on Russia every day." The video, which has amassed almost 30,000 views, offered a "how-to" spot misinformation. The S&P 500 fell 1.3% to 4,204.36, and the Dow Jones Industrial Average was down 0.7% to 32,943.33. The Dow posted a fifth straight weekly loss — its longest losing streak since 2019. The Nasdaq Composite tumbled 2.2% to 12,843.81. Though all three indexes opened in the green, stocks took a turn after a new report showed U.S. consumer sentiment deteriorated more than expected in early March as consumers' inflation expectations soared to the highest since 1981.
from hk


Telegram Кресты на моей кукухе
FROM American