<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ydb/library/cpp, 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-10T17:39:11Z</updated>
<entry>
<title>Fix gzip detection in libmagic</title>
<updated>2026-06-10T17:39:11Z</updated>
<author>
<name>ivan-kligunov</name>
<email>ivan-kligunov@yandex-team.com</email>
</author>
<published>2026-06-10T14:41:47Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=432aed965eb06e70340d0ecf37885139782d0837'/>
<id>urn:sha1:432aed965eb06e70340d0ecf37885139782d0837</id>
<content type='text'>
add gzip alias
commit_hash:4543da4a84ec380ede1e06385ff85a7fa8d6bcec
</content>
</entry>
<entry>
<title>make constant public MD5_HEX_DIGEST_LENGTH</title>
<updated>2026-06-10T09:54:23Z</updated>
<author>
<name>uzhas</name>
<email>uzhas@yandex-team.com</email>
</author>
<published>2026-06-10T08:46:07Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=d2043be5a693e46feb1b55e916442f4956dccf61'/>
<id>urn:sha1:d2043be5a693e46feb1b55e916442f4956dccf61</id>
<content type='text'>
commit_hash:4a07699e482566e3338ad4a92dcef209f57c2742
</content>
</entry>
<entry>
<title>New version of the tld SKIP_CHECK SKIP_REVIEW</title>
<updated>2026-06-10T01:48:38Z</updated>
<author>
<name>robot-ratatosk</name>
<email>robot-ratatosk@yandex-team.com</email>
</author>
<published>2026-06-10T01:29:39Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=28040d5132e39fd456433c3a810a33416a791454'/>
<id>urn:sha1:28040d5132e39fd456433c3a810a33416a791454</id>
<content type='text'>
commit_hash:de3a49d188850e6ff1eee30d3f25ff5726a9f415
</content>
</entry>
<entry>
<title>Improve TGenericLocalValue, allow mixed thread-fiber-etc values</title>
<updated>2026-06-08T18:16:24Z</updated>
<author>
<name>kulikov</name>
<email>kulikov@yandex-team.com</email>
</author>
<published>2026-06-08T17:33:12Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=a6848417fed706ec4f89a589c2ea9aa54eb39829'/>
<id>urn:sha1:a6848417fed706ec4f89a589c2ea9aa54eb39829</id>
<content type='text'>
Make generic local values more safe and usable:

- instead of factory, register fiber/coroutine-aware "GLS (general local storage) contexts";
- put up to 4 (normally no more than 2 -- threads and one coroutine implementation) different "tls" variables into one generic, choose correct one from current execution context;
- suitable version of variable will be constructed on demand (no dependency from first usage);
- improve unit test too.
commit_hash:8586846a6a775bd66dffcdf58263f78042be2480
</content>
</entry>
<entry>
<title>switch JSON→proto parsing to NProtobufJson::Json2Proto</title>
<updated>2026-06-08T18:13:38Z</updated>
<author>
<name>ibratchik</name>
<email>ibratchik@yandex-team.com</email>
</author>
<published>2026-06-08T17:31:03Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=05306e1b310e5448f73063ce549a78a5408efbe7'/>
<id>urn:sha1:05306e1b310e5448f73063ce549a78a5408efbe7</id>
<content type='text'>
Replace google::protobuf::util::JsonStringToMessage with NProtobufJson::Json2Proto in incut_search request parsing and helpers/proto.h::ConvertFromString.
commit_hash:ccd17f46188ef0fd0253e146d9df2e6a8e7ba1b0
</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>[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>
</feed>
