summaryrefslogtreecommitdiffstats
path: root/util
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* [util] constexpr сравнения для TStringBufswarmer2022-06-012-59/+71
| | | | ref:695923dc5d543fcc10893896407694ebc55f3e84
* [util] constexpr для алгоритмовswarmer2022-06-012-117/+117
| | | | ref:f1a82a410e24de6f4a77f4c8f28ed3401a5516b4
* util: Do not include on Windowsthegeorg2022-05-271-2/+4
| | | | ref:4f285c4cb9d12ff2234491f46dd9d68634f9b9bb
* [util] implement THashMap::insert_or_assign methodswarmer2022-05-262-0/+71
| | | | | | IGNIETFERRO-821 ref:1e4e3b22bff7e806800218d58b1061626ebaa10f
* [util] StripInPlace should modify string in-placeswarmer2022-05-245-22/+132
| | | | ref:2aec19528c2378a0994534ec032550413a095389
* IGNIETFERRO-1105 Get rid of TAtomic in spin_waiteeight2022-05-231-10/+13
| | | | ref:788357fd9a851f54e97a8e0f133dcb3c3e275f92
* IGNIETFERRO-1105 Get rid of TAtomic in system/{atexit, event, shellcommand}eeight2022-05-205-39/+57
| | | | ref:c74bffae7e90dee515f5089979fc050d20a34e4e
* IGNIETFERRO-1105 Get rid of TAtomic in unittestseeight2022-05-194-78/+58
| | | | ref:f4d9cf527b4f26efcc95307ca7b07d1c42ebd11b
* IGNIETFERRO-1105 Get rid of TAtomic in thread/pool.cppeeight2022-05-171-7/+7
| | | | ref:3fa56aa890b75b7301a3193c2ee40106281a71cb
* IGNIETFERRO-1105 Use std::atomic in spinlockeeight2022-05-173-56/+49
| | | | ref:dca14f354fc9b9698f83663ceb0e62e797fe98c5
* piglet: Extract metadata from commit messagethegeorg2022-05-121-0/+5
| | | | | | | * Introduce `CommitMetadata` struct with structured metadata (all the fields are optional) * Drop `class Author` and use `NLibgit2::TSignature` directly instead ref:3aae28cb614b3c611f8abb2b1c12ff114aaed46f
* IGNIETFERRO-1105 TAtomic -> std::atomic in util/generic/* and threadpooleeight2022-05-117-85/+94
| | | | ref:39a714b781c60dca9e3b946d870971076e14ab7c
* include order as code-style recommendIlnur Khuziev2022-05-061-2/+2
| | | | ref:0559fab404c2acebc7471fd7651deec61b5e23e3