aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/comptable
diff options
context:
space:
mode:
authorVlad Yaroslavlev <vladon@vladon.com>2022-02-10 16:46:23 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:23 +0300
commit706b83ed7de5a473436620367af31fc0ceecde07 (patch)
tree103305d30dec77e8f6367753367f59b3cd68f9f1 /library/cpp/comptable
parent918e8a1574070d0ec733f0b76cfad8f8892ad2e5 (diff)
downloadydb-706b83ed7de5a473436620367af31fc0ceecde07.tar.gz
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/comptable')
-rw-r--r--library/cpp/comptable/comptable.cpp2
-rw-r--r--library/cpp/comptable/usage/usage.cpp10
-rw-r--r--library/cpp/comptable/ut/comptable_ut.cpp8
3 files changed, 10 insertions, 10 deletions
diff --git a/library/cpp/comptable/comptable.cpp b/library/cpp/comptable/comptable.cpp
index 8a92d4d1aa..d20ab6c7c4 100644
--- a/library/cpp/comptable/comptable.cpp
+++ b/library/cpp/comptable/comptable.cpp
@@ -1,6 +1,6 @@
#include <util/system/defaults.h>
#include <util/system/filemap.h>
-#include <util/generic/string.h>
+#include <util/generic/string.h>
#include <util/generic/vector.h>
#include <util/string/cast.h>
#include <util/stream/file.h>
diff --git a/library/cpp/comptable/usage/usage.cpp b/library/cpp/comptable/usage/usage.cpp
index 9997c83686..60de3515b4 100644
--- a/library/cpp/comptable/usage/usage.cpp
+++ b/library/cpp/comptable/usage/usage.cpp
@@ -10,8 +10,8 @@ using namespace NCompTable;
template <bool HQ>
void DoTest(const TCompressorTable& table, const TVector<TString>& lines) {
- TVector<char> compressed;
- TVector<char> decompressed;
+ TVector<char> compressed;
+ TVector<char> decompressed;
TChunkCompressor compressor(HQ, table);
TChunkDecompressor deCompressor(HQ, table);
@@ -42,18 +42,18 @@ void DoTest(const TCompressorTable& table, const TVector<TString>& lines) {
int main(int argc, const char* argv[]) {
TReallyFastRng32 rr(17);
- TVector<TString> lines;
+ TVector<TString> lines;
/*FILE *fp = fopen("res", "rb");
while (!feof(fp)) {
char buff[4096];
fscanf(fp, "%s", buff);
- lines.push_back(TString(buff));
+ lines.push_back(TString(buff));
}*/
//for (size_t i = 0; i < 10000000; ++i) {
//for (size_t i = 0; i < 1000000; ++i) {
for (size_t i = 0; i < 1000000; ++i) {
size_t size = rr.Uniform(32);
- TString res = "www.yandex.ru/yandsearch?text=";
+ TString res = "www.yandex.ru/yandsearch?text=";
for (size_t j = 0; j < size; ++j) {
res += "qwer"[rr.Uniform(4)];
}
diff --git a/library/cpp/comptable/ut/comptable_ut.cpp b/library/cpp/comptable/ut/comptable_ut.cpp
index 5901d0246f..4314e6baa0 100644
--- a/library/cpp/comptable/ut/comptable_ut.cpp
+++ b/library/cpp/comptable/ut/comptable_ut.cpp
@@ -8,8 +8,8 @@ using namespace NCompTable;
template <bool HQ>
void DoTest(const TCompressorTable& table, const TVector<TString>& lines) {
- TVector<char> compressed;
- TVector<char> decompressed;
+ TVector<char> compressed;
+ TVector<char> decompressed;
TChunkCompressor compressor(HQ, table);
TStringStream tmp;
@@ -42,10 +42,10 @@ void DoTest(const TCompressorTable& table, const TVector<TString>& lines) {
Y_UNIT_TEST_SUITE(TestComptable) {
Y_UNIT_TEST(TestComptableCompressDecompress) {
TReallyFastRng32 rr(17);
- TVector<TString> lines;
+ TVector<TString> lines;
for (size_t i = 0; i < 1000000; ++i) {
size_t size = rr.Uniform(32);
- TString res = "www.yandex.ru/yandsearch?text=";
+ TString res = "www.yandex.ru/yandsearch?text=";
for (size_t j = 0; j < size; ++j) {
res += "qwer"[rr.Uniform(4)];
}