| Commit message (Collapse) | Author | Age | Files | Lines |
| |\ |
|
| | |
| |
| |
| |
| | |
add gzip alias
commit_hash:4543da4a84ec380ede1e06385ff85a7fa8d6bcec
|
| | |
| |
| |
| | |
commit_hash:4a07699e482566e3338ad4a92dcef209f57c2742
|
| | |
| |
| |
| | |
commit_hash:de3a49d188850e6ff1eee30d3f25ff5726a9f415
|
| |\| |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| | |
| |
| |
| |
| | |
Replace google::protobuf::util::JsonStringToMessage with NProtobufJson::Json2Proto in incut_search request parsing and helpers/proto.h::ConvertFromString.
commit_hash:ccd17f46188ef0fd0253e146d9df2e6a8e7ba1b0
|
| |\| |
|
| | |
| |
| |
| | |
commit_hash:91a2de31f763fca2eb5b8595deb369458d889731
|
| | |
| |
| |
| | |
commit_hash:0f92ee40eb5e4a80c59a5cbdcac895ff7acd22e9
|
| | |
| |
| |
| | |
commit_hash:ba8c42476d6274212745348071682042e780037f
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
## 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
|
| |\| |
|
| | |
| |
| |
| |
| | |
`YA_COVERAGE_DUMP_PROFILE_AND_EXIT` is not used anymore
commit_hash:c7158fb4e201d522e6e2c31c91fa9361af4bf50c
|
| |\| |
|
| | |
| |
| |
| | |
commit_hash:5cd17c6fa69e4f6a18eb72ebb05a874491ae8ac7
|
| |\| |
|
| | |
| |
| |
| | |
commit_hash:2bc5ec4168daac56ff2c51bcd7a7db66389846fa
|
| | |
| |
| |
| |
| | |
Add a templated GetEnvValueOrThrow<T> that parses the environment variable value via FromString, next to the existing std::string overload.
commit_hash:0421b0463c473c8c7f88c0b1619484e52b002897
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |\| |
|
| | |
| |
| |
| | |
commit_hash:1156b3325b874f25124c2e535b63ae714d348818
|
| | |
| |
| |
| | |
commit_hash:58bf07dcff4aac728a67e0607d2c3b49ad1feef1
|
| |\| |
|
| | |
| |
| |
| |
| | |
Added the ability to explicitly specify parsing options.
commit_hash:1bd7947cfc298f0c3edc895a77c64f70504b78d5
|
| |\| |
|
| | |
| |
| |
| | |
commit_hash:0db96562c160786c274a724485357e45753113e0
|
| |\| |
|
| | |
| |
| |
| | |
commit_hash:cdddd6e34a004a2942a80c4f94bcc8f80481d93a
|
| |\| |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Fix typos in docstrings
---
Pull Request resolved: https://github.com/ytsaurus/ytsaurus/pull/1733
Co-authored-by: ilyaibraev <[email protected]>
commit_hash:33a12aeaeeaec2f93ef9f465a3d5cdff95b62757
|
| |\| |
|
| | |
| |
| |
| | |
commit_hash:1023e8e70ded788fb37e7af6e0fa6cb508011aea
|
| |\| |
|
| | |
| |
| |
| | |
commit_hash:e8b2304f773f981dd79203f68a204671954ee399
|
| |\| |
|
| | |
| |
| |
| | |
commit_hash:ca6efe06865fe9fc9ebfd5ca8bbd79c2acbb4ff3
|
| |\| |
|
| | |
| |
| |
| | |
commit_hash:87f1242f4d944457ae5f4d7f22860ffb516b5b97
|
| |\| |
|
| | |
| |
| |
| | |
commit_hash:dbf6bb806bcac71fd67d65ec209838e5f5133710
|
| | |
| |
| |
| | |
commit_hash:3edd8e05acaa66bfc742eb137f73474783c91bc3
|
| | |
| |
| |
| | |
commit_hash:699e7e9a27bcf1220bbe3e408349a36a50408644
|
| | |
| |
| |
| | |
commit_hash:521dab2ac8a1582612ccc7734797e8bab9180714
|
| |\| |
|
| | |
| |
| |
| | |
commit_hash:776cd37ba05fd4d206ebf47b2a3bb2323bb32c51
|
| |\| |
|
| | |
| |
| |
| | |
commit_hash:b9f1c87173a18fb59f8cf684191efd4436dd6012
|
| | |
| |
| |
| | |
commit_hash:de6fd3d7115c7d34934e129720805c6a096292a2
|
| | |
| |
| |
| | |
commit_hash:fff41cdbc1400a312067a6517c334440404c662b
|