summaryrefslogtreecommitdiffstats
path: root/library/cpp/yt/string/ya.make
Commit message (Collapse)AuthorAgeFilesLines
* Add std::string-backed stream adapters to library/cpp/yt/stringbabenko2026-06-231-0/+1
| | | | commit_hash:54a07f0d411d0ece7af812a9fdf91509f25ee5cb
* Speed up NYT::Formatbabenko2026-06-131-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | Profile-driven optimizations of the `Format` hot path, benchmarked against a representative master debug log (structured `"Key: %v"` messages dominated by GUIDs, strings, integers, bools and durations). Median improvements of ~15-20% across the workload, measured on a dedicated host. Changes: - `string_builder`: use `resize_uninitialized` in `DoReserve` to avoid zero-filling the buffer on every `Format` call. - `format`: replace the per-argument `memchr` (`spec.Contains('n')`) with an inline scan, force-inline `RunFormatterAt`, and add a `FormatString` fast path for the common plain `%v` / empty spec. - `guid`: rewrite `WriteGuidToBuffer` using a `clz`-derived digit count and a back-to-front fill instead of the per-magnitude branch cascade (cut from ~26% to ~12% of a GUID-heavy line). Validated against an `%x` reference over 2M random GUIDs plus edge cases. Also adds `library/cpp/yt/string/benchmark` to track `Format` performance. ### Benchmarks Median ns/op (lower is better), pinned core on a dedicated Xeon E5-2650 v2, 9x1s repetitions. See `library/cpp/yt/string/benchmark`. | Benchmark | What it formats | Before | After | Speedup | | --- | --- | ---: | ---: | ---: | | `ManyMixedArgs` | ~18 args: GUIDs, strings, duration, ints | 1030 | 833 | -19% | | `StringAndTwoGuids` | literal prefix + two GUIDs | 233 | 185 | -21% | | `IntAndGuid` | one int + one GUID | 205 | 179 | -13% | | `ManyInts` | six integers | 389 | 340 | -13% | | `Guid` | a single GUID | 156 | 131 | -16% | | `String` | a single string | 139 | 104 | -25% | | `Int` | a single integer | 142 | 120 | -15% | | `NoArgs` | a literal with no arguments | 88.8 | 85.7 | -3% | commit_hash:ce9957a06c3ff28b2889aa65fbbddf4ca444f9fe
* [yt string] move some dependencies out for 32bit build supportvasko2026-02-271-2/+0
| | | | | | | многие либы тянут yt/string и получают транизитивно compact\_container, который в большинстве случаев не используется (и не собирается под 32 бита) убираю это зависимость через forward decl (всё что делает string с compact\_container это задаёт концепты, которым не нужно полное определение) commit_hash:611af702c90f87ab98e05df17ec992bd2a972488
* YT-18571: library/cpp/yt/small_containers -> library/cpp/yt/compact_containersbabenko2025-01-121-2/+2
| | | | commit_hash:fc31d2770ebeffeb513c4535bd146c731b7f78fb
* Extract string_builderbabenko2024-10-131-0/+1
| | | | commit_hash:1573c88f09db79bab2755c9c2c3ffd0bc219b2d2
* YT-21868: Enable stat analysis in some other placesarkady-e1ppa2024-06-131-0/+1
| | | | | | | | | | | We slightly rework inner workings of stat analysis. For almost any sane use case the behavior is identical, but should compile a little faster. If you send string literals like `char[N]` or `const char*` make them constexpr. If you can't (e.g. `ex.what()` case) wrap it in `TStringBuf`, if you want the "by the book; 100% right" solution then wrap it in `TRuntimeFormat` instead. `SetRequestInfo` methods now statically checks the format. Only one error was found -- hooray! Some other internal stuff was added, a lot removed -- don't worry about it. You won't be able to see the difference 62050dfe8a9cedc1289f18e80397ff33a8e2ecdb
* add ymake export to ydbalexv-smirnov2023-06-131-0/+34
|
* Revert ymake build from ydb oss exportalexv-smirnov2023-03-281-34/+0
|
* add library/cpp/actors, ymake build to ydb oss exportalexv-smirnov2023-03-151-0/+34
|
* intermediate changesarcadia-devtools2022-03-151-30/+0
| | | | ref:ca7a95e8c9a9d780f96497136a152091d54e61b5
* Restoring authorship annotation for <[email protected]>. Commit 2 of 2.babenko2022-02-101-4/+4
|
* Restoring authorship annotation for <[email protected]>. Commit 1 of 2.babenko2022-02-101-4/+4
|
* Restoring authorship annotation for <[email protected]>. Commit 2 of 2.ignat2022-02-101-26/+26
|
* Restoring authorship annotation for <[email protected]>. Commit 1 of 2.ignat2022-02-101-26/+26
|
* intermediate changesDevtools Arcadia2022-02-071-0/+30
ref:cde9a383711a11544ce7e107a78147fb96cc4029