[Debtags-commits] [svn] r1592 - in tagcoll/trunk: . bench tagcoll
Enrico Zini
enrico at costa.debian.org
Mon Feb 20 16:22:45 UTC 2006
Author: enrico
Date: Mon Feb 20 16:22:44 2006
New Revision: 1592
Added:
tagcoll/trunk/bench/
tagcoll/trunk/bench/Benchmark.cc
tagcoll/trunk/bench/Benchmark.h
tagcoll/trunk/bench/Makefile.am
tagcoll/trunk/bench/bench-main.cc
tagcoll/trunk/bench/collection.cc
Modified:
tagcoll/trunk/ (props changed)
tagcoll/trunk/Makefile.am
tagcoll/trunk/configure.ac
tagcoll/trunk/tagcoll/MMapIndex.cc
tagcoll/trunk/tagcoll/MMapIndex.h
Log:
r7406 at viaza: enrico | 2006-02-20 17:22:12 +0100
Started to implement benchmarks
Modified: tagcoll/trunk/Makefile.am
==============================================================================
--- tagcoll/trunk/Makefile.am (original)
+++ tagcoll/trunk/Makefile.am Mon Feb 20 16:22:44 2006
@@ -1,6 +1,6 @@
## Process this file with automake to produce Makefile.in
-SUBDIRS = . tagcoll tests tools doc
+SUBDIRS = . tagcoll tests bench tools doc
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA=libtagcoll.pc
Modified: tagcoll/trunk/configure.ac
==============================================================================
--- tagcoll/trunk/configure.ac (original)
+++ tagcoll/trunk/configure.ac Mon Feb 20 16:22:44 2006
@@ -59,6 +59,7 @@
tagcoll/Makefile
tagcoll/tagexpr/Makefile
tests/Makefile
+bench/Makefile
doc/Makefile
tools/Makefile
libtagcoll.pc
Modified: tagcoll/trunk/tagcoll/MMapIndex.cc
==============================================================================
--- tagcoll/trunk/tagcoll/MMapIndex.cc (original)
+++ tagcoll/trunk/tagcoll/MMapIndex.cc Mon Feb 20 16:22:44 2006
@@ -87,11 +87,23 @@
MMapIndex::MMapIndex()
: m_master(0), m_buf(0), m_size(0) {}
+MMapIndex::MMapIndex(const char* buf, int size)
+{
+ init(buf, size);
+}
+
MMapIndex::MMapIndex(const MasterMMapIndex& master, size_t idx)
{
init(master, idx);
}
+void MMapIndex::init(const char* buf, int size)
+{
+ m_master = 0;
+ m_buf = buf;
+ m_size = size;
+}
+
void MMapIndex::init(const MasterMMapIndex& master, size_t idx)
{
m_master = &master;
Modified: tagcoll/trunk/tagcoll/MMapIndex.h
==============================================================================
--- tagcoll/trunk/tagcoll/MMapIndex.h (original)
+++ tagcoll/trunk/tagcoll/MMapIndex.h Mon Feb 20 16:22:44 2006
@@ -67,8 +67,10 @@
public:
MMapIndex();
+ MMapIndex(const char* buf, int size);
MMapIndex(const MasterMMapIndex& master, size_t idx);
+ void init(const char* buf, int size);
void init(const MasterMMapIndex& master, size_t idx);
};
More information about the Debtags-commits
mailing list