<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ydb/library, branch main</title>
<subtitle>Mirror of YDB github repos</subtitle>
<id>https://code.mastervirt.ru/ydb/atom?h=main</id>
<link rel='self' href='https://code.mastervirt.ru/ydb/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/'/>
<updated>2026-06-07T01:33:59Z</updated>
<entry>
<title>Sync branches 260607-0131</title>
<updated>2026-06-07T01:33:59Z</updated>
<author>
<name>YDBot</name>
<email>ydbot@ydb.tech</email>
</author>
<published>2026-06-07T01:33:59Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=1d40c26682b2481f3c9daca25b82f8aa18d99281'/>
<id>urn:sha1:1d40c26682b2481f3c9daca25b82f8aa18d99281</id>
<content type='text'>
</content>
</entry>
<entry>
<title>New version of the tld SKIP_CHECK SKIP_REVIEW</title>
<updated>2026-06-06T23:26:51Z</updated>
<author>
<name>robot-ratatosk</name>
<email>robot-ratatosk@yandex-team.com</email>
</author>
<published>2026-06-06T22:54:09Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=7e7a9bdcd5ab83a88fd31c74e70b2347a54ac275'/>
<id>urn:sha1:7e7a9bdcd5ab83a88fd31c74e70b2347a54ac275</id>
<content type='text'>
commit_hash:91a2de31f763fca2eb5b8595deb369458d889731
</content>
</entry>
<entry>
<title>Stroka -&gt; TString, Wtroka -&gt; TUtf16String..</title>
<updated>2026-06-06T22:57:56Z</updated>
<author>
<name>akhropov</name>
<email>akhropov@yandex-team.com</email>
</author>
<published>2026-06-06T22:19:15Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=19371c4e76c71936ceba67c5113e5b4421e7b922'/>
<id>urn:sha1:19371c4e76c71936ceba67c5113e5b4421e7b922</id>
<content type='text'>
commit_hash:0f92ee40eb5e4a80c59a5cbdcac895ff7acd22e9
</content>
</entry>
<entry>
<title>YT-22593: Reduce TString usage in core/misc</title>
<updated>2026-06-06T22:31:50Z</updated>
<author>
<name>babenko</name>
<email>babenko@yandex-team.com</email>
</author>
<published>2026-06-06T22:15:06Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=ffc038d5a916cec181915795ca4b45f07ee2ae05'/>
<id>urn:sha1:ffc038d5a916cec181915795ca4b45f07ee2ae05</id>
<content type='text'>
commit_hash:ba8c42476d6274212745348071682042e780037f
</content>
</entry>
<entry>
<title>Cache process/thread id getters and use them in TError origin capture</title>
<updated>2026-06-06T21:16:49Z</updated>
<author>
<name>babenko</name>
<email>babenko@yandex-team.com</email>
</author>
<published>2026-06-06T20:52:00Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=f10c7206fb31af8057446bceef9707aabaa9456e'/>
<id>urn:sha1:f10c7206fb31af8057446bceef9707aabaa9456e</id>
<content type='text'>
## Motivation
Profiling the YT master Automaton thread showed TOriginAttributes::Capture (run on every non-OK TError) spending ~60% of its time in a getpid() syscall — uncached on glibc &gt;= 2.25. NYT::GetCurrentThreadId() (gettid) feeds hot thread-affinity / log-manager checks on the same thread.

## Changes
- New library/cpp/yt/system/process_id.* with cached GetProcessId(); GetSystemThreadId() now caches the kernel tid in TLS. Both caches reset in the child after fork.
- Moved thread_name.{h,cpp} from misc to system.
- Removed GetCurrentProcessId/GetCurrentThreadId shims from yt/yt/core/misc/proc.{h,cpp}; migrated all callers to NYT::GetProcessId / NYT::GetSystemThreadId.
- TOriginAttributes::Capture uses the cached getters; recorded Tid is now the real kernel tid (matches perf/ps).
- Added microbenchmarks (library/cpp/yt/system/benchmarks, yt/yt/core/benchmarks/error.cpp).

## Microbenchmarks (release)
| | before | after |
|---|---|---|
| getpid | 101 ns | 0.33 ns |
| gettid | 102 ns | 1.64 ns |
| Capture | 161 ns | 50 ns |
| failed TError | 221 ns | 74 ns |
commit_hash:ee37ae57d61a5a2dd33daee935270f4bb93b7ff9
</content>
</entry>
<entry>
<title>Sync branches 260605-0128</title>
<updated>2026-06-05T01:30:29Z</updated>
<author>
<name>YDBot</name>
<email>ydbot@ydb.tech</email>
</author>
<published>2026-06-05T01:30:29Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=027b2c1ab96f197b9b4e9ea09d6a915257814f01'/>
<id>urn:sha1:027b2c1ab96f197b9b4e9ea09d6a915257814f01</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[library] Trim dump_clang_coverage</title>
<updated>2026-06-04T17:50:02Z</updated>
<author>
<name>slizyukalex</name>
<email>slizyukalex@yandex-team.com</email>
</author>
<published>2026-06-04T17:03:22Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=073ad2ac124df7257f1c17304d6cc1483bb4bfb4'/>
<id>urn:sha1:073ad2ac124df7257f1c17304d6cc1483bb4bfb4</id>
<content type='text'>
`YA_COVERAGE_DUMP_PROFILE_AND_EXIT` is not used anymore
commit_hash:c7158fb4e201d522e6e2c31c91fa9361af4bf50c
</content>
</entry>
<entry>
<title>Sync branches 260604-0944</title>
<updated>2026-06-04T09:46:48Z</updated>
<author>
<name>YDBot</name>
<email>ydbot@ydb.tech</email>
</author>
<published>2026-06-04T09:46:48Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=db5b90517207ed5f41d196b5ac1f40863486503d'/>
<id>urn:sha1:db5b90517207ed5f41d196b5ac1f40863486503d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>New version of the tld SKIP_CHECK SKIP_REVIEW</title>
<updated>2026-06-04T06:35:28Z</updated>
<author>
<name>robot-ratatosk</name>
<email>robot-ratatosk@yandex-team.com</email>
</author>
<published>2026-06-04T06:13:32Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=c34e3d27b414a62bff889a5ed90b735f352f75d9'/>
<id>urn:sha1:c34e3d27b414a62bff889a5ed90b735f352f75d9</id>
<content type='text'>
commit_hash:5cd17c6fa69e4f6a18eb72ebb05a874491ae8ac7
</content>
</entry>
<entry>
<title>Sync branches 260604-0138</title>
<updated>2026-06-04T01:40:42Z</updated>
<author>
<name>YDBot</name>
<email>ydbot@ydb.tech</email>
</author>
<published>2026-06-04T01:40:42Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=257bf799b632de8db40b19b6bbdbaea9e5a38120'/>
<id>urn:sha1:257bf799b632de8db40b19b6bbdbaea9e5a38120</id>
<content type='text'>
</content>
</entry>
</feed>
