| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This will result in smaller code generation when Status instances are
passed around.
Benchmarks don't indicate a significant change either way.
CPU: 48 * Intel(R) Xeon(R) CPU E5-2690 v3 @ 2.60GHz
CPUCache: 30720 KB
Keys: 16 bytes each
Values: 100 bytes each (50 bytes after compression)
Entries: 1000000
RawSize: 110.6 MB (estimated)
FileSize: 62.9 MB (estimated)
Baseline:
fillseq : 3.589 micros/op; 30.8 MB/s
fillsync : 4165.299 micros/op; 0.0 MB/s (1000 ops)
fillrandom : 5.864 micros/op; 18.9 MB/s
overwrite : 7.830 micros/op; 14.1 MB/s
readrandom : 5.534 micros/op; (1000000 of 1000000 found)
readrandom : 4.292 micros/op; (1000000 of 1000000 found)
readseq : 0.312 micros/op; 354.1 MB/s
readreverse : 0.501 micros/op; 220.8 MB/s
compact : 886211.000 micros/op;
readrandom : 3.518 micros/op; (1000000 of 1000000 found)
readseq : 0.251 micros/op; 441.2 MB/s
readreverse : 0.456 micros/op; 242.4 MB/s
fill100K : 1329.723 micros/op; 71.7 MB/s (1000 ops)
crc32c : 1.976 micros/op; 1976.7 MB/s (4K per op)
snappycomp : 4.705 micros/op; 830.2 MB/s (output: 55.1%)
snappyuncomp : 0.958 micros/op; 4079.1 MB/s
acquireload : 0.727 micros/op; (each op is 1000 loads)
New:
fillseq : 3.129 micros/op; 35.4 MB/s
fillsync : 2748.099 micros/op; 0.0 MB/s (1000 ops)
fillrandom : 5.394 micros/op; 20.5 MB/s
overwrite : 7.253 micros/op; 15.3 MB/s
readrandom : 5.655 micros/op; (1000000 of 1000000 found)
readrandom : 4.425 micros/op; (1000000 of 1000000 found)
readseq : 0.298 micros/op; 371.3 MB/s
readreverse : 0.508 micros/op; 217.9 MB/s
compact : 885842.000 micros/op;
readrandom : 3.545 micros/op; (1000000 of 1000000 found)
readseq : 0.252 micros/op; 438.2 MB/s
readreverse : 0.425 micros/op; 260.2 MB/s
fill100K : 1418.347 micros/op; 67.2 MB/s (1000 ops)
crc32c : 1.987 micros/op; 1966.0 MB/s (4K per op)
snappycomp : 4.767 micros/op; 819.4 MB/s (output: 55.1%)
snappyuncomp : 0.916 micros/op; 4264.9 MB/s
acquireload : 0.665 micros/op; (each op is 1000 loads)
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=194002392
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The porting layer implements threading primitives: atomic pointers,
condition variables, mutexes, thread-safe initialization. These are all
specified in C++11, so the reference open source port implementation can
become platform-independent.
The porting layer will remain in place to allow the use of other
implementations with more features, such as the built-in deadlock
detection in abseil's Mutex.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=193245934
|
|
|
|
|
|
|
|
| |
This was contributed in https://github.com/google/leveldb/pull/492
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=193080913
|
|
|
|
|
|
|
|
|
| |
Commit a0008deb679480fd30e845d7e52421af72160c2c introduced
std::numeric_limits usage in logging.cc, but didn't #include <limits>
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=192840190
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The old implementation caused odd crashes on ARM, which were fixed by
changing a local variable type. The main suspect is the use of a static
local variable. This CL replaces the static local variable with
constexpr, which still ensures the compiler sees the expressions as
constants.
The CL also replaces Slice operations in the functions' inner loop with
iterator-style pointer operations, which can help the compiler generate
less code.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=192832175
|
|
|
|
|
|
|
|
|
|
| |
ConsumeDecimalNumber has fairly non-trivial logic, and a previous
version has crashed inexplicably on Android. Having some test coverage
will make it easier to tweak / simplify the function later on.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=192821751
|
|
|
|
|
|
| |
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=192490601
|
|
|
|
|
|
| |
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=192365747
|
|
|
|
|
|
|
|
|
| |
This is an accidental leftover from the CMake migration. The macro has
been replaced with LEVELDB_IS_BIG_ENDIAN.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=192364918
|
|
|
|
|
|
|
|
|
|
|
|
| |
The CMake-based build relies on __has_include, which is standardized in
C++17. Unfortunately, __has_include is available without requiring
--std=c++17 on all the compilers on CI, so this problem was not caught.
Fixes https://github.com/google/leveldb/issues/572
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=192208842
|
|
|
|
|
|
| |
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=190262375
|
|
|
|
|
|
|
|
| |
After this CL, all classes with Mutex members should be covered by annotations. Exceptions are atomic members, which shouldn't need locking, and DBImpl members that cause errors when annotated, which will be tackled separately.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=190260865
|
|
|
|
|
|
|
|
|
| |
C++11 requires <atomic>. This lets us remove the header detection
(LEVELDB_ATOMIC_PRESENT) and simplify port/atomic_pointer.h.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=189919098
|
|
|
|
|
|
|
|
|
|
| |
This CL switches the public headers to C++11 default and deleted constructors, and adds override to the relevant leveldb::EnvWrapper methods. This should be a good test for C++11 compiler support.
Once this CL settles, the rest of the codebase can be safely modernized to C++11.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=189873212
|
|
|
|
|
|
| |
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=189824264
|
|
|
|
|
|
|
|
|
|
| |
The header is missing from the file lists, resulting in incomplete installs.
This was originally contributed in https://github.com/google/leveldb/pull/568.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=189822907
|
|
|
|
|
|
|
|
|
|
|
|
| |
helpers/memenv/memenv.cc used SIZE_MAX without including <stdint.h>.
Since we're fixing this problem, replace SIZE_MAX with
std::numeric_limits<size_t>::max(), which is clearer.
Fixes https://github.com/google/leveldb/issues/562
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=189821707
|
|
|
|
|
|
|
|
| |
Fixes https://github.com/google/leveldb/issues/466
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=189425354
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This CL makes it easier to reason about thread safety by:
1) Adding Clang thread safety annotations according to comments.
2) Expanding a couple of variable names, without adding extra lines of code.
3) Adding const in a couple of places.
4) Replacing an always-non-null const pointer with a reference.
5) Fixing style warnings in the modified files.
This CL does not annotate the DBImpl members that claim to be protected
by the instance mutex, but are accessed without the mutex being held.
Those members (and their unprotected accesses) will be addressed in
future CLs.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=189354657
|
|
|
|
|
|
|
|
|
|
| |
This CL removes unused headers included by util/testharness.h, adds
precise includes where the build breaks, and fixes style errors in the
edited files.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=189331061
|
|
|
|
|
|
|
|
|
|
|
| |
External linkage is the default for function declarations in C++.
This also fixes ClangTidy errors generated by removing the "extern"
keyword as described above.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=188730416
|
|
|
|
|
|
|
|
|
| |
This change was contributed by GitHub user @LopatkinEvgeniy in
https://github.com/google/leveldb/pull/559.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=188728845
|
|
|
|
|
|
| |
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=188728505
|
|
|
|
|
|
|
|
|
|
|
| |
This is a stopgap for removing warnings on Mac builds, so -Werror can be
turned on. C++11 will be required in the nearby future, which guarantees
<atomic> support. Once that happens, the simplified version of this will
match https://github.com/google/leveldb/pull/503
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=188553251
|
|
|
|
|
|
|
|
|
| |
This aligns the Travis CI configuration with google/crc32c and
google/snappy, to simplify maintenance.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=188547648
|
|
|
|
|
|
|
|
| |
This removes the use of the non-portable headers <sys/types.h> and <unistd.h> in c_test.c.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=188503102
|
|
|
|
|
|
| |
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=188488298
|
|
|
|
|
|
|
|
| |
The thread safety annotations used by leveldb got opensourced in Abseil
[1]. This CL replaces leveldb's stubs with the relevant definitions from
[1], and adds annotations to the Mutex classes in the POSIX port.
[1] https://github.com/abseil/abseil-cpp/blob/master/absl/base/thread_annotations.h
|
|
|
|
|
|
|
|
|
|
|
| |
When the max file size option was added in CL 134391640 the C API
was not modified to support this.
This change was contributed by GitHub user @olt and fixes issue #439.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=173466388
|
|
|
|
|
|
|
|
|
|
| |
The C++ style guide URL was wrong.
This fixes issue #394. Reported by GitHub user @Loki-Astari.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=173188573
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Deleted two unused assignments:
1. offset_in_block in Reader::SkipToInitialBlock().
2. in_fragmented_record in Reader::ReadRecord().
Reasons for the change:
1. offset_in_block is not read again after the if condition.
2. The kFullRecordType switch branch returns, so
in_fragmented_record isn't read again.
3. The kFirstType switch branch sets in_fragmented_record to
true after the if, so the write in the if is ignored.
Change contributed by @C0deAi on GitHub.
This fixes https://github.com/google/leveldb/issues/517
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=172763897
|
|
|
|
|
|
|
|
|
|
| |
Env's that filtered out dot files ("." and "..") would return an
empty vector of children causing DestroyDB to do nothing. This fixes
https://github.com/google/leveldb/issues/215
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=172501335
|
|
|
|
|
|
| |
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=171708408
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Maintaining a hardware-accelerated CRC32C implementation tailored for
all modern platforms deserves a repository of its own. We extracted the
implementation here into https://github.com/google/crc32c and improved
it in that repository. This CL removes the SSE-optimized implementation
from this codebase, and adds the ability to use the google/crc32c
library, if it is present on the system.
The benchmarks below show the performance impact of the change. In
summary, open source builds that use the google/crc32c library can
expect a 3x improvement in CRC32C throughput, whereas builds that do not
use the library will see a 50% drop in CRC32C throughput. This
translates in much smaller changes in overall leveldb performance.
Baseline, MacBookPro13,3 with Core i7 6920HQ:
LevelDB: version 1.20
Keys: 16 bytes each
Values: 100 bytes each (50 bytes after compression)
Entries: 1000000
RawSize: 110.6 MB (estimated)
FileSize: 62.9 MB (estimated)
------------------------------------------------
fillseq : 3.064 micros/op; 36.1 MB/s
fillsync : 57.861 micros/op; 1.9 MB/s (1000 ops)
fillrandom : 3.887 micros/op; 28.5 MB/s
overwrite : 4.140 micros/op; 26.7 MB/s
readrandom : 7.433 micros/op; (1000000 of 1000000 found)
readrandom : 6.825 micros/op; (1000000 of 1000000 found)
readseq : 0.244 micros/op; 453.4 MB/s
readreverse : 0.387 micros/op; 285.8 MB/s
compact : 449707.000 micros/op;
readrandom : 4.196 micros/op; (1000000 of 1000000 found)
readseq : 0.228 micros/op; 485.8 MB/s
readreverse : 0.320 micros/op; 345.2 MB/s
fill100K : 562.556 micros/op; 169.6 MB/s (1000 ops)
crc32c : 0.768 micros/op; 5085.0 MB/s (4K per op)
snappycomp : 4.220 micros/op; 925.7 MB/s (output: 55.1%)
snappyuncomp : 0.635 micros/op; 6155.7 MB/s
acquireload : 13.054 micros/op; (each op is 1000 loads)
New with crc32c, MacBookPro13,3 with Core i7 6920HQ:
LevelDB: version 1.20
Keys: 16 bytes each
Values: 100 bytes each (50 bytes after compression)
Entries: 1000000
RawSize: 110.6 MB (estimated)
FileSize: 62.9 MB (estimated)
------------------------------------------------
fillseq : 2.820 micros/op; 39.2 MB/s
fillsync : 51.988 micros/op; 2.1 MB/s (1000 ops)
fillrandom : 3.747 micros/op; 29.5 MB/s
overwrite : 4.047 micros/op; 27.3 MB/s
readrandom : 7.287 micros/op; (1000000 of 1000000 found)
readrandom : 6.927 micros/op; (1000000 of 1000000 found)
readseq : 0.253 micros/op; 437.5 MB/s
readreverse : 0.411 micros/op; 269.2 MB/s
compact : 440405.000 micros/op;
readrandom : 4.159 micros/op; (1000000 of 1000000 found)
readseq : 0.230 micros/op; 481.1 MB/s
readreverse : 0.320 micros/op; 345.9 MB/s
fill100K : 558.222 micros/op; 170.9 MB/s (1000 ops)
crc32c : 0.214 micros/op; 18263.5 MB/s (4K per op)
snappycomp : 4.471 micros/op; 873.7 MB/s (output: 55.1%)
snappyuncomp : 0.833 micros/op; 4688.5 MB/s
acquireload : 13.289 micros/op; (each op is 1000 loads)
New without crc32c, MacBookPro13,3 with Core i7 6920HQ
LevelDB: version 1.20
Keys: 16 bytes each
Values: 100 bytes each (50 bytes after compression)
Entries: 1000000
RawSize: 110.6 MB (estimated)
FileSize: 62.9 MB (estimated)
------------------------------------------------
fillseq : 3.094 micros/op; 35.8 MB/s
fillsync : 52.160 micros/op; 2.1 MB/s (1000 ops)
fillrandom : 4.090 micros/op; 27.0 MB/s
overwrite : 4.006 micros/op; 27.6 MB/s
readrandom : 6.584 micros/op; (1000000 of 1000000 found)
readrandom : 6.676 micros/op; (1000000 of 1000000 found)
readseq : 0.280 micros/op; 395.2 MB/s
readreverse : 0.391 micros/op; 283.2 MB/s
compact : 433911.000 micros/op;
readrandom : 4.261 micros/op; (1000000 of 1000000 found)
readseq : 0.251 micros/op; 440.5 MB/s
readreverse : 0.356 micros/op; 310.9 MB/s
fill100K : 584.023 micros/op; 163.3 MB/s (1000 ops)
crc32c : 1.384 micros/op; 2822.3 MB/s (4K per op)
snappycomp : 4.763 micros/op; 820.1 MB/s (output: 55.1%)
snappyuncomp : 0.766 micros/op; 5098.6 MB/s
acquireload : 12.931 micros/op; (each op is 1000 loads)
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=171667771
|
|
|
|
|
|
|
|
|
| |
This follows the general naming convention for preprocessor macros used
to detect feature (library / header file / symbol) presence.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=171184641
|
|
|
|
|
|
|
|
|
|
| |
CL 170738066 removed all instances of fread_unlocked, fwrite_unlocked
and fflush_unlocked calls from the codebase, so the feature detection
can be removed as well.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=171154269
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
gcc defaults to exporting all symbols, but other linkers do not. Adding
the LEVELDB_EXPORT macro allows a project to set LEVELDB_SHARED_LIBRARY
when building/linking with leveldb as a shared library.
This is to allow leveldb to be created as a shared library on all
platforms support by Chrome and enables a fix for
https://bugs.chromium.org/p/chromium/issues/detail?id=764810.
This also has the benefit of reducing the shared library size from
418863 to 380367 bytes (64-bit Linux).
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=171037148
|
|
|
|
|
|
|
|
|
| |
CL 170738066 introduced std::min and std::max to env_test.cc. These
require the <algorithm> header.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=171024062
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Deleting a PosixWritableFile without calling Close() leaks the file
descriptor. While the API description in include/leveldb/env.h does not
specify whether the caller is responsible for Close()ing the file before
deleting it, all other Env file implementations do release underlying
resources when destroyed, even if Close() is not called.
The leak shows up when running db_tests on Mac Travis, or on a vanilla
MacOS install.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=170906843
|
|
|
|
|
|
|
|
|
|
| |
This also removes std::unique_ptr introduced in CL 170738066, because
it's C++11-only, and the open source version still supports older
versions at the moment.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=170876919
|
|
|
|
|
|
| |
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=170876103
|
|
|
|
|
|
|
|
|
|
|
| |
If the file already existed, we should have truncated it. This was not
detected by leveldb tests since leveldb code avoids reusing same files,
but there was code elsewhere that was directly using leveldb files and
relying on this behavior.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=170769101
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If leveldb::Options::block_cache is set to a cache of zero capacity
then it is possible for LRUHandle::next to be used without having been
set.
Conditional jump or move depends on uninitialised value(s):
leveldb::(anonymous namespace)::LRUHandle::key() const (cache.cc:58)
leveldb::(anonymous namespace)::LRUCache::Unref(leveldb::(anonymous namespace)::LRUHandle*) (cache.cc:234)
leveldb::(anonymous namespace)::LRUCache::Release(leveldb::Cache::Handle*) (cache.cc:266)
leveldb::(anonymous namespace)::ShardedLRUCache::Release(leveldb::Cache::Handle*) (cache.cc:375)
leveldb::CacheTest::Insert(int, int, int) (cache_test.cc:59)
This bug forced a commit reversion in Chromium. For more information see
https://bugs.chromium.org/p/chromium/issues/detail?id=761398#c4
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=170749054
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
env_posix.cc and concurrent application calls to fflush(NULL).
The fix is to avoid using stdio in env_posix.cc but add our own
buffering where we need it.
Added a test to reproduce the bug.
Added a test for Env reads/writes.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=170738066
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Benchmark results below. More results at
https://github.com/google/crc32c/commit/354d61ef97eb73d4f0c1694cac6ec6116a5543e4.
New, MacBookPro13,3 with Core i7 6920HQ:
LevelDB: version 1.20
Keys: 16 bytes each
Values: 100 bytes each (50 bytes after compression)
Entries: 1000000
RawSize: 110.6 MB (estimated)
FileSize: 62.9 MB (estimated)
WARNING: Snappy compression is not enabled
------------------------------------------------
fillseq : 2.952 micros/op; 37.5 MB/s
fillsync : 43.932 micros/op; 2.5 MB/s (1000 ops)
fillrandom : 3.856 micros/op; 28.7 MB/s
overwrite : 4.053 micros/op; 27.3 MB/s
readrandom : 4.234 micros/op; (1000000 of 1000000 found)
readrandom : 3.923 micros/op; (1000000 of 1000000 found)
readseq : 0.201 micros/op; 550.8 MB/s
readreverse : 0.356 micros/op; 310.6 MB/s
compact : 436800.000 micros/op;
readrandom : 2.375 micros/op; (1000000 of 1000000 found)
readseq : 0.151 micros/op; 734.3 MB/s
readreverse : 0.298 micros/op; 370.7 MB/s
fill100K : 554.075 micros/op; 172.1 MB/s (1000 ops)
crc32c : 1.393 micros/op; 2805.0 MB/s (4K per op)
snappycomp : 3902.000 micros/op; (snappy failure)
snappyuncomp : 3821.000 micros/op; (snappy failure)
acquireload : 13.088 micros/op; (each op is 1000 loads)
Baseline, MacBookPro13,3 with Core i7 6920HQ:
LevelDB: version 1.20
Keys: 16 bytes each
Values: 100 bytes each (50 bytes after compression)
Entries: 1000000
RawSize: 110.6 MB (estimated)
FileSize: 62.9 MB (estimated)
WARNING: Snappy compression is not enabled
------------------------------------------------
fillseq : 3.000 micros/op; 36.9 MB/s
fillsync : 46.721 micros/op; 2.4 MB/s (1000 ops)
fillrandom : 3.922 micros/op; 28.2 MB/s
overwrite : 4.080 micros/op; 27.1 MB/s
readrandom : 4.409 micros/op; (1000000 of 1000000 found)
readrandom : 3.895 micros/op; (1000000 of 1000000 found)
readseq : 0.190 micros/op; 582.4 MB/s
readreverse : 0.413 micros/op; 267.6 MB/s
compact : 441076.000 micros/op;
readrandom : 2.308 micros/op; (1000000 of 1000000 found)
readseq : 0.170 micros/op; 651.2 MB/s
readreverse : 0.302 micros/op; 366.2 MB/s
fill100K : 614.289 micros/op; 155.3 MB/s (1000 ops)
crc32c : 3.547 micros/op; 1101.2 MB/s (4K per op)
snappycomp : 3393.000 micros/op; (snappy failure)
snappyuncomp : 3171.000 micros/op; (snappy failure)
acquireload : 12.761 micros/op; (each op is 1000 loads)
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=170100372
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
12 lines above, there is an "if (!s.ok()) { return s; }" block of code.
"s" is never modified between that block and the "if" removed by this
CL, so "s.ok()" must be true.
The code most likely intended to say "if (!builder->ok())", because the
builder->Add() call above can modify the TableBuilder's status, as a
side-effect. However, this approach would have required setting "s =
builder.status()" in the "else" branch, near the "builder.Abandon()"
call. So, removing the "if" outright is simpler than following that line
of thought.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=167326229
|
|
|
|
|
|
| |
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=167303843
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
An Android test was occasionally crashing with a SEGV in ConsumeDecimalNumber
Switching a local variable from an int to uint64_t eliminated these crashes.
Speculating this is either a compiler, runtime library, or emulator issue.
Switching this type to uint64_t also eliminates a compiler warning
about comparing an int with a uint64_t.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=166399695
|