Optimized: C++ Compilation, ~10x speedup
This commit is contained in:
+3
-1
@@ -1,5 +1,6 @@
|
||||
#ifndef _AQUERY_H
|
||||
#define _AQUERY_H
|
||||
|
||||
enum Log_level {
|
||||
LOG_INFO,
|
||||
LOG_ERROR,
|
||||
@@ -11,6 +12,7 @@ enum Backend_Type {
|
||||
BACKEND_MonetDB,
|
||||
BACKEND_MariaDB
|
||||
};
|
||||
|
||||
struct Config{
|
||||
int running, new_query, server_mode,
|
||||
backend_type, has_dll, n_buffers;
|
||||
@@ -71,5 +73,5 @@ extern void Afree(void * mem);
|
||||
extern void register_memory(void* ptr, deallocator_t deallocator);
|
||||
extern void init_session(Context* cxt);
|
||||
|
||||
#define __AQ_NO_SESSION__ void init_session(Context*) {}
|
||||
#define __AQ_NO_SESSION__ __AQEXPORT__(void) init_session(Context*) {}
|
||||
#endif
|
||||
+2
-3
@@ -25,7 +25,6 @@ void register_memory(void* ptr, deallocator_t deallocator){
|
||||
memmap->operator[](ptr) = deallocator;
|
||||
}
|
||||
|
||||
void init_session(Context* cxt){
|
||||
__AQEXPORT__(void) init_session(Context* cxt){
|
||||
session = &cxt->current;
|
||||
// session->memory_map = new std::unordered_map<void*, deallocator_t>();
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
#include "aquery.h"
|
||||
__AQ_NO_SESSION__
|
||||
// __AQ_NO_SESSION__
|
||||
#include "../server/table.h"
|
||||
|
||||
__AQEXPORT__(ColRef<float>) mulvec(int a, ColRef<float> b){
|
||||
|
||||
Reference in New Issue
Block a user