summaryrefslogtreecommitdiffstats
path: root/util
Commit message (Collapse)AuthorAgeFilesLines
* [util]TLazyValue: remove operator bool and Definedtldr2022-10-112-15/+11
|
* Fix a warning when compiling util/ with nvcc 10.xdfyz2022-10-081-1/+1
| | | | | | | | | | | | nvcc10.1 is unable to compile `[[clang::reinitializes]]` and issues warning as follows: ``` util/generic/ptr.h(194): warning: attribute namespace "clang" is unrecognized util/generic/ptr.h(201): warning: attribute namespace "clang" is unrecognized [...] ``` nvcc11 compiles this code without any warnings. This PRs disable `[[clang::reinitialized]]` when compiling with nvcc10.
* [util] Fix TFunctionRef under MSVCsskvor2022-10-073-6/+23
|
* util: add .As<T> to TSharedPtrionagamed2022-10-012-1/+76
|
* Clang14: Fix library/cpp/coroutine/engine under tsanpg2022-09-291-1/+3
|
* External build system generator release 10robot-ya-builder2022-09-261-1/+1
| | | Update tools: yexport
* add comment for TAdaptiveLocktobo2022-09-221-0/+8
| | | https://clubs.at.yandex-team.ru/arcadia/8450/8489#reply-arcadia-8489
* Fix tsan warnings in yt intrusive ptrayles2022-09-191-0/+21
| | | | | | | | | | | | | | | | | | | | | For example, https://github.com/google/sanitizers/issues/1352 - tsan is not working well with std::atomic_thread_fence Minimal reproducible example (and one that bothers most in every fiber-aware service): ``` auto threadPool = NYT::New<NYT::NConcurrency::TThreadPool>(2, "thread"); TVector<NYT::TFuture<void>> futures; for (size_t i = 0; i < 100000; ++i) { futures.emplace_back(BIND([]() { }).AsyncVia(threadPool->GetInvoker()).Run()); } for (auto& future : futures) { future.Get().ThrowOnError(); } ```
* split hash.h into hash.h and multi_hash_map.htobo2022-09-151-1/+1
|
* prepare to split hash.h into hash_table.h hash.h and multi_hash_map.htobo2022-09-0912-1756/+1775
|
* Fix GC in kv tablet,kruall2022-09-061-3/+4
|
* External build system generator release 7robot-ya-builder2022-09-061-1/+1
|
* Fix incorrect fqdn on linux in some edge casessnaury2022-09-021-9/+28
|
* Update external build system generation utilityrobot-ya-builder2022-09-013-0/+11
| | | | * [cmake] Hierarchical add_subdirectroy structure * [cmake] Support for same file compilation multiple times with different flags
* New cmake semantics for compiling with AVX and other specific flagsignat2022-08-311-11/+0
|
* fixup size of aligned memory region to mlock []yurial2022-08-301-2/+17
| | | Если мы сдвигаем addr в меньшую сторону, то len мы должны увеличить на столько же. В противном случае, мы можем залочить меньше, чем нужно.
* [util] Do not build function_ref on MSVC temporarilysskvor2022-08-262-2/+2
|
* [http/client] Support unix domain sockets as a backendivanzhukov2022-08-264-0/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | Предыдущий заход: https://a.yandex-team.ru/review/2811077/details#comment--4489184 После изменений можно будет обращаться к HTTP серверу, слушающему на unix domain socket. Пример такого сервера: ```js require('http').createServer((req, res) => { console.log(req); res.writeHead(200, {'Content-Type': 'application/json'}); res.end(JSON.stringify({ 'metrics': [ { 'labels': { 'name': 'metric', 'some_key': 'some_value' }, 'type': 'GAUGE', 'value': 123 } ] }, null, 4)); }) .listen('/home/ivanzhukov/test_ua/ua.sock'); // вместо .listen(7777); ```
* [util] Fix: add missing .cpp for function_refsskvor2022-08-253-0/+3
|
* speedup GmTimeR functiontobo2022-08-252-34/+166
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | в профиле перфа Маркетного репорта постоянно вижу GmTimeR там в цикле вычитается по количеству дней в году и прибавляется по 1 году с 1970 по 2022 на каждый вызов В Маркете проблема стреляла и раньше в последней итерации функция становится на ~~30% быстрее системной gmtime_r %% ----------- GmTimeR --------------- samples: 20691 iterations: 264304536 iterations hr: 264M run time: 5.002055225 per iteration: 39.85866484 cycles ----------- gmtime_r --------------- samples: 17452 iterations: 188034528 iterations hr: 188M run time: 5.001259884 per iteration: 56.96146577 cycles %% текущая верся почти в 2 раза медленнее системной: %% ----------- GmTimeR --------------- samples: 12760 iterations: 100514931 iterations hr: 101M run time: 5.00096133 per iteration: 105.4334174 cycles ----------- gmtime_r --------------- samples: 17667 iterations: 192697896 iterations hr: 193M run time: 5.001356603 per iteration: 55.69031415 cycles %%
* added limit parameterbbiff2022-08-242-0/+272
|
* [util] Add specializations for const / ref qualified member functionssskvor2022-08-243-10/+115
|
* Do not override contains() method which is present is STLthegeorg2022-08-232-18/+0
|
* Switch TString and TStringBase to std::reverse_iteratorthegeorg2022-08-213-56/+9
| | | At the time an attempt to use e. g. `std::find_if` with `TString::rbegin()` / `TString::rend()` does not compile against `-DUSE_STL_SYSTEM` / modern libstdc++.
* fix UB in case of empty stringbufasorotsky2022-08-121-1/+5
|
* Introduce TryFromString returning TMaybeevelkin2022-08-092-2/+59
| | | | | | | | | | | Позволяем писать без неиницилизированных переменных по месту использования. Вот такую красоту например: ``` if (auto a = TryFromString<T>(str)) { что-то делаем с \*a } ```
* Mark clear and reset methods as reinitializing the object.halyavin2022-08-057-34/+47
| | | | | This means, that moved-from object can be safely used after the call of such method. This attribute is used by clang-tidy which checks that moved-from objects are not used unless a reinitialization method is called first.
* add [[nodiscard]] attribute to Strip functionstobo2022-08-041-12/+10
|
* TString -> std::string fix TFsPath copyxinull2022-08-013-1/+58
| | | | | Add copy operator and constructor Create copy with initialized split test
* Print escaped path if it contains invalid characterscezarnik2022-07-281-1/+2
|
* remove unused includetobo2022-07-271-1/+0
|
* add functions without overflowyegorskii2022-07-263-0/+31
|
* [util] prefer non-const begin/end method for non-const containers in ↵swarmer2022-07-192-3/+23
| | | | | | | | | | AdjacentFind* functions AdjacentFind и AdjacentFindBy принимали контейнер по константной ссылке и из-за этого возвращали константный итератор. Стоит для некостантного контейнера возвращать также неконстантный итератор (если он есть). Это позволит 1. использовать итератор для модификации контейнера; 2. обойти проблему, когда методы `end()` и `cend()`/`std::as_const(…).end()` возвращают итераторы разных типов, которые нельзя сравнивать, либо для которых выбор оператора сравнения неоднозначен.
* Add ydb changelogbazeltsev2022-07-112-1/+2
| | | updated
* Add logging after applying new GroupInfo,serg-belyakov2022-07-081-1/+1
|
* fix ya.makemonster2022-07-0759-3944/+1
|
* util: Drop NO_CITYHASH point of customisationthegeorg2022-06-282-12/+8
| | | | ref:613556c5a389af24a29e4fdef6ec5dfeee33bd39
* intermediate changesarcadia-devtools2022-06-281-1/+1
| | | | ref:91e6b243cd7f0c53cbafb4f654eced58a4c1e436
* Stop providing non-inlined MurmurHashSizeTthegeorg2022-06-273-10/+6
| | | | ref:7e797cda3221e4c1905f5e443a9342db82e66883
* Allow creating Singlelon during Singleton destruction back againthegeorg2022-06-242-1/+21
| | | | ref:53c837a1fa0289db60812b95b6ac96be23ae018d
* IGNIETFERRO-1922 Move atomics from util to library/cpp/deprecatedeeight2022-06-1512-686/+6
| | | | ref:0c3b0edd3284567c45ec77e57166274f3cfed8c7
* [enum_parser] generate ToStringBuf specializationswarmer2022-06-131-0/+8
| | | | | | IGNIETFERRO-1350 ref:bb9bb1755b6abfc5a27639daf049b8a7cd748fe4
* [util] AdjacentFind + AdjacentFindByswarmer2022-06-102-0/+58
| | | | ref:76575abc5c39caf128339b56115c217c15766b51
* IGNIETFERRO-1105 -> Top level t-zeeight2022-06-092-2/+2
| | | | ref:e0e9801df5ee25dfbcfcb5974271dfd7dac8216c
* Pull request "ShufflePart function" by @igormarkov00 from ↵arcadia-devtools2022-06-072-0/+73
| | | | | | | | https://github.com/catboost/catboost/pull/2087 MERGED FROM https://github.com/catboost/catboost/pull/2087 ref:d27dfbe948e17ef1feb8ad2b13b409915afc86c8
* Add missing map_ut.pyx to util/generic/ut_cythonthegeorg2022-06-032-0/+4
| | | | ref:ccf13829e6e56d0e31ff3fab73f19915f1539e5c
* util: Flatten cython tests layoutthegeorg2022-06-037-3/+13
| | | | ref:7427208d08ebeb9e88247fb7dac6445bc814d756
* Add missing source file to ya.makethegeorg2022-06-022-0/+2
| | | | ref:ee42e4700caddee3694c141f1fc89c18e7aff2ac
* [util] IsSortedBy for containersswarmer2022-06-022-0/+11
| | | | ref:6c01516241e312227b7654b6b0260add648c8609
* Flatten util teststhegeorg2022-06-011-1/+1
| | | | ref:0297d20665112368dc5e412e2531f67b3dd3c3ec