<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ydb/library/cpp/yt, 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-06T22:31:50Z</updated>
<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>Generalize GetEnvValueOrThrow with a typed conversion overload</title>
<updated>2026-06-03T08:26:50Z</updated>
<author>
<name>babenko</name>
<email>babenko@yandex-team.com</email>
</author>
<published>2026-06-03T08:02:37Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=b62b275069b9c743d3da207efbc6e03206212f47'/>
<id>urn:sha1:b62b275069b9c743d3da207efbc6e03206212f47</id>
<content type='text'>
Add a templated GetEnvValueOrThrow&lt;T&gt; that parses the environment variable value via FromString, next to the existing std::string overload.
commit_hash:0421b0463c473c8c7f88c0b1619484e52b002897
</content>
</entry>
<entry>
<title>YT: Add formatter for all protobuf enums</title>
<updated>2026-06-02T10:59:36Z</updated>
<author>
<name>grigminakov</name>
<email>grigminakov@yandex-team.com</email>
</author>
<published>2026-06-02T08:55:51Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=3b859ddc8d5eee908953aa0a217e448933ffc2af'/>
<id>urn:sha1:3b859ddc8d5eee908953aa0a217e448933ffc2af</id>
<content type='text'>
commit_hash:58bf07dcff4aac728a67e0607d2c3b49ad1feef1
</content>
</entry>
<entry>
<title>Cosmetics: fix typos in docstrings and comments</title>
<updated>2026-05-29T12:48:40Z</updated>
<author>
<name>gearonixx</name>
<email>egor.uzhanin@gmail.com</email>
</author>
<published>2026-05-29T11:55:36Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=60d30e2677a02db4bc62a30af634e06b26f20565'/>
<id>urn:sha1:60d30e2677a02db4bc62a30af634e06b26f20565</id>
<content type='text'>
Fix typos in docstrings

---

Pull Request resolved: https://github.com/ytsaurus/ytsaurus/pull/1733

Co-authored-by: ilyaibraev &lt;ilyaibraev@yandex-team.com&gt;
commit_hash:33a12aeaeeaec2f93ef9f465a3d5cdff95b62757
</content>
</entry>
<entry>
<title>YT-26105: Make TError aware of ::TSystemError</title>
<updated>2026-05-25T08:19:52Z</updated>
<author>
<name>dann239</name>
<email>dann239@yandex-team.com</email>
</author>
<published>2026-05-25T07:58:24Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=b98aa1ad6a725444af35a0070e6dea6f2114f8d3'/>
<id>urn:sha1:b98aa1ad6a725444af35a0070e6dea6f2114f8d3</id>
<content type='text'>
commit_hash:ca6efe06865fe9fc9ebfd5ca8bbd79c2acbb4ff3
</content>
</entry>
<entry>
<title>Use std::invoke to call std::invokable in TAtomicObject::Transform</title>
<updated>2026-05-22T10:49:27Z</updated>
<author>
<name>osidorkin</name>
<email>osidorkin@yandex-team.com</email>
</author>
<published>2026-05-21T09:30:25Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=cae374b29b654b5105b2445fc55bd01dfd9d11a6'/>
<id>urn:sha1:cae374b29b654b5105b2445fc55bd01dfd9d11a6</id>
<content type='text'>
commit_hash:699e7e9a27bcf1220bbe3e408349a36a50408644
</content>
</entry>
<entry>
<title>Remove excess blank line</title>
<updated>2026-05-19T01:15:02Z</updated>
<author>
<name>pechatnov</name>
<email>pechatnov@yandex-team.com</email>
</author>
<published>2026-05-19T00:48:45Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=e324708cc3d0cf8fe8e3f192da6a1d1f93c2bdc5'/>
<id>urn:sha1:e324708cc3d0cf8fe8e3f192da6a1d1f93c2bdc5</id>
<content type='text'>
commit_hash:fff41cdbc1400a312067a6517c334440404c662b
</content>
</entry>
<entry>
<title>YT-22593: Migrate yt/yt/ytree to std::string</title>
<updated>2026-05-18T15:44:09Z</updated>
<author>
<name>babenko</name>
<email>babenko@yandex-team.com</email>
</author>
<published>2026-05-18T15:23:26Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=b7add35b490546eabbcd8ee474117c90cd6819ac'/>
<id>urn:sha1:b7add35b490546eabbcd8ee474117c90cd6819ac</id>
<content type='text'>
commit_hash:3466775b052bc8a85a2aa85e9605968e7a5ea025
</content>
</entry>
<entry>
<title>Fix babenko-issues</title>
<updated>2026-05-12T08:18:13Z</updated>
<author>
<name>dann239</name>
<email>dann239@yandex-team.com</email>
</author>
<published>2026-05-12T07:48:52Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=45287cc21ce4c76805e11f580ecf76e1c5fceaa2'/>
<id>urn:sha1:45287cc21ce4c76805e11f580ecf76e1c5fceaa2</id>
<content type='text'>
commit_hash:2728816c79b29fccf31698e16733a0220fd3069e
</content>
</entry>
</feed>
