mirror of
https://github.com/YuhangQ/InvoDB.git
synced 2025-01-25 22:20:58 +00:00
performance optimize
This commit is contained in:
parent
fabb655eca
commit
40ce388fb0
@ -3,6 +3,8 @@ project(InvoDB)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 14)
|
||||
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O3")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3")
|
||||
|
||||
include_directories(.)
|
||||
include_directories(./invodb)
|
||||
|
@ -6,6 +6,7 @@
|
||||
|
||||
BTreeUUID::BTreeUUID(const int& address) {
|
||||
root = address;
|
||||
n_size = 0;
|
||||
}
|
||||
|
||||
int BTreeUUID::find(const std::string& uuid) {
|
||||
|
@ -29,7 +29,7 @@ int main() {
|
||||
col->insert(json);
|
||||
|
||||
BTreeUUID *btree = new BTreeUUID(PageManager::Instance().allocate());
|
||||
btree->testAndBenchmark(1000);
|
||||
btree->testAndBenchmark(100000);
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user