forked from litecoin-project/litecoin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
196962f Add AcceleratedCRC32C to port_win.h 1bdf1c3 Merge upstream LevelDB v1.20 d31721e Merge litecoin-project#17: Fixed file sharing errors fecd449 Fixed file sharing error in Win32Env::GetFileSize(), Win32SequentialFile::_Init(), Win32RandomAccessFile::_Init() Fixed error checking in Win32SequentialFile::_Init() 5b7510f Merge litecoin-project#14: Merge upstream LevelDB 1.19 0d969fd Merge litecoin-project#16: [LevelDB] Do no crash if filesystem can't fsync c8c029b [LevelDB] Do no crash if filesystem can't fsync a53934a Increase leveldb version to 1.20. f3f1397 Separate Env tests from PosixEnv tests. eb4f097 leveldb: Fix compilation warnings in port_posix_sse.cc on x86 (32-bit). d0883b6 Fixed path to doc file: index.md. 7fa2094 Convert documentation to markdown. ea175e2 Implement support for Intel crc32 instruction (SSE 4.2) 95cd743 Including <limits> for std::numeric_limits. 646c358 Limit the number of read-only files the POSIX Env will have open. d40bc3f Merge litecoin-project#13: Typo ebbd772 Typo a2fb086 Add option for max file size. The currend hard-coded value of 2M is inefficient in colossus. git-subtree-dir: src/leveldb git-subtree-split: 196962f
- Loading branch information
Showing
31 changed files
with
1,414 additions
and
1,151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ Authors: Sanjay Ghemawat ([email protected]) and Jeff Dean ([email protected]) | |
* External activity (file system operations etc.) is relayed through a virtual interface so users can customize the operating system interactions. | ||
|
||
# Documentation | ||
[LevelDB library documentation](https://rawgit.com/google/leveldb/master/doc/index.html) is online and bundled with the source code. | ||
[LevelDB library documentation](https://github.com/google/leveldb/blob/master/doc/index.md) is online and bundled with the source code. | ||
|
||
|
||
# Limitations | ||
|
@@ -113,29 +113,30 @@ by the one or two disk seeks needed to fetch the data from disk. | |
Write performance will be mostly unaffected by whether or not the | ||
working set fits in memory. | ||
|
||
readrandom : 16.677 micros/op; (approximately 60,000 reads per second) | ||
readseq : 0.476 micros/op; 232.3 MB/s | ||
readreverse : 0.724 micros/op; 152.9 MB/s | ||
readrandom : 16.677 micros/op; (approximately 60,000 reads per second) | ||
readseq : 0.476 micros/op; 232.3 MB/s | ||
readreverse : 0.724 micros/op; 152.9 MB/s | ||
|
||
LevelDB compacts its underlying storage data in the background to | ||
improve read performance. The results listed above were done | ||
immediately after a lot of random writes. The results after | ||
compactions (which are usually triggered automatically) are better. | ||
|
||
readrandom : 11.602 micros/op; (approximately 85,000 reads per second) | ||
readseq : 0.423 micros/op; 261.8 MB/s | ||
readreverse : 0.663 micros/op; 166.9 MB/s | ||
readrandom : 11.602 micros/op; (approximately 85,000 reads per second) | ||
readseq : 0.423 micros/op; 261.8 MB/s | ||
readreverse : 0.663 micros/op; 166.9 MB/s | ||
|
||
Some of the high cost of reads comes from repeated decompression of blocks | ||
read from disk. If we supply enough cache to the leveldb so it can hold the | ||
uncompressed blocks in memory, the read performance improves again: | ||
|
||
readrandom : 9.775 micros/op; (approximately 100,000 reads per second before compaction) | ||
readrandom : 5.215 micros/op; (approximately 190,000 reads per second after compaction) | ||
readrandom : 9.775 micros/op; (approximately 100,000 reads per second before compaction) | ||
readrandom : 5.215 micros/op; (approximately 190,000 reads per second after compaction) | ||
|
||
## Repository contents | ||
|
||
See doc/index.html for more explanation. See doc/impl.html for a brief overview of the implementation. | ||
See [doc/index.md](doc/index.md) for more explanation. See | ||
[doc/impl.md](doc/impl.md) for a brief overview of the implementation. | ||
|
||
The public interface is in include/*.h. Callers should not include or | ||
rely on the details of any other header files in this package. Those | ||
|
@@ -148,7 +149,7 @@ Guide to header files: | |
* **include/options.h**: Control over the behavior of an entire database, | ||
and also control over the behavior of individual reads and writes. | ||
|
||
* **include/comparator.h**: Abstraction for user-specified comparison function. | ||
* **include/comparator.h**: Abstraction for user-specified comparison function. | ||
If you want just bytewise comparison of keys, you can use the default | ||
comparator, but clients can write their own comparator implementations if they | ||
want custom ordering (e.g. to handle different character encodings, etc.) | ||
|
@@ -165,7 +166,7 @@ length into some other byte array. | |
* **include/status.h**: Status is returned from many of the public interfaces | ||
and is used to report success and various kinds of errors. | ||
|
||
* **include/env.h**: | ||
* **include/env.h**: | ||
Abstraction of the OS environment. A posix implementation of this interface is | ||
in util/env_posix.cc | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.