summaryrefslogtreecommitdiffstats
path: root/library
Commit message (Collapse)AuthorAgeFilesLines
* Sync branches 260611-0131YDBot16 hours5-4/+6
|\
| * Fix gzip detection in libmagicivan-kligunov23 hours1-1/+1
| | | | | | | | | | add gzip alias commit_hash:4543da4a84ec380ede1e06385ff85a7fa8d6bcec
| * make constant public MD5_HEX_DIGEST_LENGTHuzhas31 hours3-2/+4
| | | | | | | | commit_hash:4a07699e482566e3338ad4a92dcef209f57c2742
| * New version of the tld SKIP_CHECK SKIP_REVIEWrobot-ratatosk39 hours1-1/+1
| | | | | | | | commit_hash:de3a49d188850e6ff1eee30d3f25ff5726a9f415
* | Sync branches 260609-0122YDBot3 days5-30/+218
|\|
| * Improve TGenericLocalValue, allow mixed thread-fiber-etc valueskulikov3 days2-25/+86
| | | | | | | | | | | | | | | | | | | | 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
| * switch JSON→proto parsing to NProtobufJson::Json2Protoibratchik3 days3-5/+132
| | | | | | | | | | Replace google::protobuf::util::JsonStringToMessage with NProtobufJson::Json2Proto in incut_search request parsing and helpers/proto.h::ConvertFromString. commit_hash:ccd17f46188ef0fd0253e146d9df2e6a8e7ba1b0
* | Sync branches 260607-0131YDBot5 days22-20/+271
|\|
| * New version of the tld SKIP_CHECK SKIP_REVIEWrobot-ratatosk5 days1-1/+1
| | | | | | | | commit_hash:91a2de31f763fca2eb5b8595deb369458d889731
| * Stroka -> TString, Wtroka -> TUtf16String..akhropov5 days2-8/+8
| | | | | | | | commit_hash:0f92ee40eb5e4a80c59a5cbdcac895ff7acd22e9
| * YT-22593: Reduce TString usage in core/miscbabenko5 days1-1/+1
| | | | | | | | commit_hash:ba8c42476d6274212745348071682042e780037f
| * Cache process/thread id getters and use them in TError origin capturebabenko5 days19-10/+261
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ## 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 >= 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
* | Sync branches 260605-0128YDBot7 days2-16/+1
|\|
| * [library] Trim dump_clang_coverageslizyukalex7 days2-16/+1
| | | | | | | | | | `YA_COVERAGE_DUMP_PROFILE_AND_EXIT` is not used anymore commit_hash:c7158fb4e201d522e6e2c31c91fa9361af4bf50c
* | Sync branches 260604-0944YDBot7 days1-1/+1
|\|
| * New version of the tld SKIP_CHECK SKIP_REVIEWrobot-ratatosk7 days1-1/+1
| | | | | | | | commit_hash:5cd17c6fa69e4f6a18eb72ebb05a874491ae8ac7
* | Sync branches 260604-0138YDBot8 days6-2/+88
|\|
| * Intermediate changesrobot-piglet8 days1-1/+1
| | | | | | | | commit_hash:2bc5ec4168daac56ff2c51bcd7a7db66389846fa
| * Generalize GetEnvValueOrThrow with a typed conversion overloadbabenko8 days4-1/+83
| | | | | | | | | | Add a templated GetEnvValueOrThrow<T> that parses the environment variable value via FromString, next to the existing std::string overload. commit_hash:0421b0463c473c8c7f88c0b1619484e52b002897
| * feat python: always compile Python libs with -O3antoshkka8 days1-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Many people use Python to test their C++ binaries built in Debug (that is a common case in RideTech). Debug built Python is very slow, almost noone debugs the Python interpreter itself, so this patch forces the Python to be always built with optimizations. Tests run (3 iteratons) with -O3 compiled Python (this patch): ``` real 5m20.239s user 17m51.171s sys 1m38.676s real 5m31.585s user 17m55.240s sys 1m38.903s real 5m20.914s user 17m57.854s sys 1m39.039s ``` Same tests (2 iterations) with default Python in debug (current trunk): ``` real 13m43.975s user 46m29.006s sys 2m13.313s real 13m29.301s user 46m55.216s sys 2m10.173s ``` For other service: ``` # This patch real 1m24.427s user 6m56.296s sys 0m39.936s real 1m12.953s user 7m34.245s sys 0m37.000s real 1m14.612s user 7m27.097s sys 0m36.839s # Trunk: real 1m59.555s user 13m40.203s sys 0m35.482s real 2m2.459s user 13m50.473s sys 0m34.215s real 1m59.250s user 13m34.304s sys 0m32.218s ``` And another service: ``` # This patch real 0m36.629s user 0m48.045s sys 0m2.074s # Trunk: real 1m56.316s user 2m16.525s sys 0m3.732s ``` commit_hash:9fa58184be777973e5f8c4aebc3811ca348299b6
* | Sync branches 260602-1817YDBot9 days4-1/+40
|\|
| * add ParseTextFormatFromStringilnurkh9 days3-0/+37
| | | | | | | | commit_hash:1156b3325b874f25124c2e535b63ae714d348818
| * YT: Add formatter for all protobuf enumsgrigminakov9 days1-1/+3
| | | | | | | | commit_hash:58bf07dcff4aac728a67e0607d2c3b49ad1feef1
* | Sync branches 260602-0132YDBot10 days3-11/+38
|\|
| * [libxml] add parseOptionsgbrun10 days3-11/+38
| | | | | | | | | | Added the ability to explicitly specify parsing options. commit_hash:1bd7947cfc298f0c3edc895a77c64f70504b78d5
* | Sync branches 260601-0133YDBot11 days1-1/+1
|\|
| * New version of the tld SKIP_CHECK SKIP_REVIEWrobot-ratatosk11 days1-1/+1
| | | | | | | | commit_hash:0db96562c160786c274a724485357e45753113e0
* | Sync branches 260531-0129YDBot12 days1-1/+1
|\|
| * New version of the tld SKIP_CHECK SKIP_REVIEWrobot-ratatosk12 days1-1/+1
| | | | | | | | commit_hash:cdddd6e34a004a2942a80c4f94bcc8f80481d93a
* | Sync branches 260530-0121YDBot13 days3-3/+3
|\|
| * Cosmetics: fix typos in docstrings and commentsgearonixx13 days3-3/+3
| | | | | | | | | | | | | | | | | | | | | | Fix typos in docstrings --- Pull Request resolved: https://github.com/ytsaurus/ytsaurus/pull/1733 Co-authored-by: ilyaibraev <[email protected]> commit_hash:33a12aeaeeaec2f93ef9f465a3d5cdff95b62757
* | Sync branches 260529-0126YDBot14 days1-1/+1
|\|
| * New version of the tld SKIP_CHECK SKIP_REVIEWrobot-ratatosk2026-05-281-1/+1
| | | | | | | | commit_hash:1023e8e70ded788fb37e7af6e0fa6cb508011aea
* | Sync branches 260527-1035YDBot2026-05-271-2/+8
|\|
| * Fix move assignmenteivanov892026-05-271-2/+8
| | | | | | | | commit_hash:e8b2304f773f981dd79203f68a204671954ee399
* | Sync branches 260526-0121YDBot2026-05-261-0/+2
|\|
| * YT-26105: Make TError aware of ::TSystemErrordann2392026-05-251-0/+2
| | | | | | | | commit_hash:ca6efe06865fe9fc9ebfd5ca8bbd79c2acbb4ff3
* | Sync branches 260525-0126YDBot2026-05-251-1/+1
|\|
| * New version of the tld SKIP_CHECK SKIP_REVIEWrobot-ratatosk2026-05-251-1/+1
| | | | | | | | commit_hash:87f1242f4d944457ae5f4d7f22860ffb516b5b97
* | Sync branches 260523-0119YDBot2026-05-238-33/+28
|\|
| * json-value: GetValueByPathOrCreateilnurkh2026-05-223-0/+13
| | | | | | | | commit_hash:dbf6bb806bcac71fd67d65ec209838e5f5133710
| * New version of the tld SKIP_CHECK SKIP_REVIEWrobot-ratatosk2026-05-221-1/+1
| | | | | | | | commit_hash:3edd8e05acaa66bfc742eb137f73474783c91bc3
| * Use std::invoke to call std::invokable in TAtomicObject::Transformosidorkin2026-05-222-6/+6
| | | | | | | | commit_hash:699e7e9a27bcf1220bbe3e408349a36a50408644
| * Intermediate changesrobot-piglet2026-05-222-26/+8
| | | | | | | | commit_hash:521dab2ac8a1582612ccc7734797e8bab9180714
* | Sync branches 260520-0136YDBot2026-05-201-1/+1
|\|
| * Intermediate changesrobot-piglet2026-05-191-1/+1
| | | | | | | | commit_hash:776cd37ba05fd4d206ebf47b2a3bb2323bb32c51
* | Sync branches 260519-1514YDBot2026-05-198-59/+62
|\|
| * Add Concat for arbitrary string typesvadim-xd2026-05-191-36/+4
| | | | | | | | commit_hash:b9f1c87173a18fb59f8cf684191efd4436dd6012
| * New version of the tld SKIP_CHECK SKIP_REVIEWrobot-ratatosk2026-05-191-1/+1
| | | | | | | | commit_hash:de6fd3d7115c7d34934e129720805c6a096292a2
| * Remove excess blank linepechatnov2026-05-191-1/+0
| | | | | | | | commit_hash:fff41cdbc1400a312067a6517c334440404c662b