]> source.dussan.org Git - jgit.git/commit
DHT: Replace TinyProtobuf with Google Protocol Buffers 45/3345/7
authorShawn O. Pearce <spearce@spearce.org>
Fri, 13 May 2011 14:44:42 +0000 (07:44 -0700)
committerChris Aniszczyk <caniszczyk@gmail.com>
Wed, 25 May 2011 14:00:42 +0000 (09:00 -0500)
commit6ec6169215eb33683728c583e231eb5fe9617813
tree3b06bb912d42705490e8e1ae3856f71f7f7be1e3
parent7cad0adc7dd0f1ce261a11b16bd1725a12827161
DHT: Replace TinyProtobuf with Google Protocol Buffers

The standard Google distribution of Protocol Buffers in Java is better
maintained than TinyProtobuf, and should be faster for most uses.  It
does use slightly more memory due to many of our key types being
stored as strings in protobuf messages, but this is probably worth the
small hit to memory in exchange for better maintained code that is
easier to reuse in other applications.

Exposing all of our data members to the underlying implementation
makes it easier to develop reporting and data mining tools, or to
expand out a nested structure like RefData into a flat format in a SQL
database table.

Since the C++ `protoc` tool is necessary to convert the protobuf
script into Java code, the generated files are committed as part of
the source repository to make it easier for developers who do not have
this tool installed to still build the overall JGit package and make
use of it.  Reviewers will need to be careful to ensure that any edits
made to a *.proto file come in a commit that also updates the
generated code to match.

CQ: 5135
Change-Id: I53e11e82c186b9cf0d7b368e0276519e6a0b2893
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Chris Aniszczyk <caniszczyk@gmail.com>
59 files changed:
.eclipse_iplog
org.eclipse.jgit.generated.storage.dht.proto/.classpath [new file with mode: 0644]
org.eclipse.jgit.generated.storage.dht.proto/.gitignore [new file with mode: 0644]
org.eclipse.jgit.generated.storage.dht.proto/.project [new file with mode: 0644]
org.eclipse.jgit.generated.storage.dht.proto/.settings/org.eclipse.core.resources.prefs [new file with mode: 0644]
org.eclipse.jgit.generated.storage.dht.proto/.settings/org.eclipse.core.runtime.prefs [new file with mode: 0644]
org.eclipse.jgit.generated.storage.dht.proto/.settings/org.eclipse.jdt.core.prefs [new file with mode: 0644]
org.eclipse.jgit.generated.storage.dht.proto/.settings/org.eclipse.jdt.ui.prefs [new file with mode: 0644]
org.eclipse.jgit.generated.storage.dht.proto/META-INF/MANIFEST.MF [new file with mode: 0644]
org.eclipse.jgit.generated.storage.dht.proto/build.properties [new file with mode: 0644]
org.eclipse.jgit.generated.storage.dht.proto/generate.sh [new file with mode: 0755]
org.eclipse.jgit.generated.storage.dht.proto/plugin.properties [new file with mode: 0644]
org.eclipse.jgit.generated.storage.dht.proto/pom.xml [new file with mode: 0644]
org.eclipse.jgit.generated.storage.dht.proto/resources/org/eclipse/jgit/storage/dht/git_cache.proto [new file with mode: 0644]
org.eclipse.jgit.generated.storage.dht.proto/resources/org/eclipse/jgit/storage/dht/git_store.proto [new file with mode: 0644]
org.eclipse.jgit.generated.storage.dht.proto/src/org/eclipse/jgit/generated/storage/dht/proto/GitCache.java [new file with mode: 0644]
org.eclipse.jgit.generated.storage.dht.proto/src/org/eclipse/jgit/generated/storage/dht/proto/GitStore.java [new file with mode: 0644]
org.eclipse.jgit.storage.dht/META-INF/MANIFEST.MF
org.eclipse.jgit.storage.dht/pom.xml
org.eclipse.jgit.storage.dht/resources/org/eclipse/jgit/storage/dht/DhtText.properties
org.eclipse.jgit.storage.dht/resources/org/eclipse/jgit/storage/dht/git_store.proto [deleted file]
org.eclipse.jgit.storage.dht/src/org/eclipse/jgit/storage/dht/CachedPackInfo.java [deleted file]
org.eclipse.jgit.storage.dht/src/org/eclipse/jgit/storage/dht/CachedPackKey.java
org.eclipse.jgit.storage.dht/src/org/eclipse/jgit/storage/dht/ChunkFormatter.java
org.eclipse.jgit.storage.dht/src/org/eclipse/jgit/storage/dht/ChunkInfo.java
org.eclipse.jgit.storage.dht/src/org/eclipse/jgit/storage/dht/ChunkKey.java
org.eclipse.jgit.storage.dht/src/org/eclipse/jgit/storage/dht/ChunkMeta.java [deleted file]
org.eclipse.jgit.storage.dht/src/org/eclipse/jgit/storage/dht/ChunkMetaUtil.java [new file with mode: 0644]
org.eclipse.jgit.storage.dht/src/org/eclipse/jgit/storage/dht/DhtCachedPack.java
org.eclipse.jgit.storage.dht/src/org/eclipse/jgit/storage/dht/DhtInserter.java
org.eclipse.jgit.storage.dht/src/org/eclipse/jgit/storage/dht/DhtInserterOptions.java
org.eclipse.jgit.storage.dht/src/org/eclipse/jgit/storage/dht/DhtObjectRepresentation.java
org.eclipse.jgit.storage.dht/src/org/eclipse/jgit/storage/dht/DhtPackParser.java
org.eclipse.jgit.storage.dht/src/org/eclipse/jgit/storage/dht/DhtReader.java
org.eclipse.jgit.storage.dht/src/org/eclipse/jgit/storage/dht/DhtRefDatabase.java
org.eclipse.jgit.storage.dht/src/org/eclipse/jgit/storage/dht/DhtRefUpdate.java
org.eclipse.jgit.storage.dht/src/org/eclipse/jgit/storage/dht/DhtText.java
org.eclipse.jgit.storage.dht/src/org/eclipse/jgit/storage/dht/LargeNonDeltaObject.java
org.eclipse.jgit.storage.dht/src/org/eclipse/jgit/storage/dht/ObjectInfo.java
org.eclipse.jgit.storage.dht/src/org/eclipse/jgit/storage/dht/ObjectWriter.java
org.eclipse.jgit.storage.dht/src/org/eclipse/jgit/storage/dht/PackChunk.java
org.eclipse.jgit.storage.dht/src/org/eclipse/jgit/storage/dht/Prefetcher.java
org.eclipse.jgit.storage.dht/src/org/eclipse/jgit/storage/dht/QueueObjectLookup.java
org.eclipse.jgit.storage.dht/src/org/eclipse/jgit/storage/dht/RecentChunks.java
org.eclipse.jgit.storage.dht/src/org/eclipse/jgit/storage/dht/RefData.java [deleted file]
org.eclipse.jgit.storage.dht/src/org/eclipse/jgit/storage/dht/RefDataUtil.java [new file with mode: 0644]
org.eclipse.jgit.storage.dht/src/org/eclipse/jgit/storage/dht/TinyProtobuf.java [deleted file]
org.eclipse.jgit.storage.dht/src/org/eclipse/jgit/storage/dht/spi/ChunkTable.java
org.eclipse.jgit.storage.dht/src/org/eclipse/jgit/storage/dht/spi/RefTable.java
org.eclipse.jgit.storage.dht/src/org/eclipse/jgit/storage/dht/spi/RepositoryTable.java
org.eclipse.jgit.storage.dht/src/org/eclipse/jgit/storage/dht/spi/cache/CacheChunkTable.java
org.eclipse.jgit.storage.dht/src/org/eclipse/jgit/storage/dht/spi/cache/CacheObjectIndexTable.java
org.eclipse.jgit.storage.dht/src/org/eclipse/jgit/storage/dht/spi/cache/CacheRefTable.java
org.eclipse.jgit.storage.dht/src/org/eclipse/jgit/storage/dht/spi/cache/CacheRepositoryTable.java
org.eclipse.jgit.storage.dht/src/org/eclipse/jgit/storage/dht/spi/memory/MemChunkTable.java
org.eclipse.jgit.storage.dht/src/org/eclipse/jgit/storage/dht/spi/memory/MemObjectIndexTable.java
org.eclipse.jgit.storage.dht/src/org/eclipse/jgit/storage/dht/spi/memory/MemRefTable.java
org.eclipse.jgit.storage.dht/src/org/eclipse/jgit/storage/dht/spi/memory/MemRepositoryTable.java
pom.xml