Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Float merge #40

Closed
wants to merge 99 commits into from
Closed
Show file tree
Hide file tree
Changes from 90 commits
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
3a4218a
...
rrrlasse Oct 1, 2012
80c0788
merge
rrrlasse Oct 2, 2012
3bb9e16
merged stuff
rrrlasse Oct 2, 2012
05c1cd7
to have a backup
rrrlasse Oct 3, 2012
65a1ee8
awsome query scheduling
rrrlasse Oct 9, 2012
f2a9a34
Scheduling again
rrrlasse Oct 11, 2012
3ce6aca
Made unit tests pass :)
rrrlasse Oct 12, 2012
707539d
tuning
rrrlasse Nov 23, 2012
87b6c8c
Merged with master
rrrlasse Nov 26, 2012
ca30f88
Finished merging and passes unit tests. Needs tons of more testing, t…
rrrlasse Nov 27, 2012
cae64ce
warnings
rrrlasse Dec 4, 2012
dfcc2db
Merge branch 'master' of https://github.com/rrrlasse/tightdb into que…
rrrlasse Dec 4, 2012
f40bc7f
Made it compile in gcc
rrrlasse Dec 19, 2012
05d3701
Updated Array to make init_header protected available.
Dec 21, 2012
02aac2e
Rudimentary ArrayFloat available
Dec 21, 2012
50a1022
VS2012 updates to project files.
Dec 21, 2012
cd9e25f
Documentation and code cleanup
rrrlasse Dec 21, 2012
ee91483
Fixed bug
rrrlasse Jan 2, 2013
a8a81bf
gcc compile error
rrrlasse Jan 2, 2013
b48ce0f
Merge branch 'master' of https://github.com/rrrlasse/tightdb into que…
rrrlasse Jan 2, 2013
9be333c
Compiler fixes
rrrlasse Jan 2, 2013
e9f395f
float WIP: Generic array and column. some Table support.
Jan 3, 2013
7a9b444
float WIP: Added find-methods & TableView support.
Jan 4, 2013
51afbf0
float WIP: update query started.
Jan 4, 2013
150c127
Merge branch 'queryspeed' of github.com:rrrlasse/tightdb into feature…
Jan 4, 2013
0b069c2
float WIP: In process of adding Query support for floats
Jan 7, 2013
57567d8
Indented "finding-code" correctly in arra.hpp
Jan 8, 2013
d0ce11f
Simplified Table::GetColumn* with templates. And removed the Is*Colum…
Jan 8, 2013
42a34a8
float WIP: Renamed generic to basic. and a lot of other stuff..
Jan 9, 2013
c4a9c7b
preparing queries for float (not working yet)
rrrlasse Jan 10, 2013
02da0d4
float: added testcases for double. Renamed tmeplate files (again).
Jan 10, 2013
7e4fd6a
merge
rrrlasse Jan 11, 2013
2895864
added missing file
rrrlasse Jan 11, 2013
4082fd2
added missing file
rrrlasse Jan 11, 2013
44c8b72
Merge branch 'queryspeed' of github.com:rrrlasse/tightdb into feature…
Jan 11, 2013
4709691
finally made it work on gcc
rrrlasse Jan 11, 2013
3cb7033
Merge branch 'feature_float' of github.com:bmunkholm/tightdb into que…
rrrlasse Jan 11, 2013
b17d611
removed warnings, etc
rrrlasse Jan 11, 2013
236227f
float: Added greater_equal, less_equal.
Jan 11, 2013
1ae8da3
Merge branch 'queryspeed' of github.com:rrrlasse/tightdb into feature…
Jan 11, 2013
0e4c1cd
float: wip
Jan 11, 2013
647d646
float: wip on query aggregates.
Jan 14, 2013
714e54d
work in progress...
rrrlasse Jan 14, 2013
e6be840
float wip.
Jan 14, 2013
361e120
Merge branch 'queryspeed' of github.com:rrrlasse/tightdb into feature…
Jan 14, 2013
7d0c063
work in progress
rrrlasse Jan 15, 2013
497477c
Merge branch 'feature_float' of github.com:bmunkholm/tightdb into que…
rrrlasse Jan 15, 2013
0401eda
type bugfix
rrrlasse Jan 15, 2013
b178458
Merge branch 'feature_float' of github.com:bmunkholm/tightdb into que…
rrrlasse Jan 15, 2013
8240ac4
fixes
rrrlasse Jan 15, 2013
48f6e65
wip - query templating
Jan 15, 2013
1726a53
Merge branch 'queryspeed' of github.com:rrrlasse/tightdb into feature…
Jan 15, 2013
216feff
float wip: some query aggregate functionality added - not fully working.
Jan 16, 2013
9a2084d
fixes
rrrlasse Jan 16, 2013
37c3ae7
Merge branch 'feature_float' of github.com:bmunkholm/tightdb into que…
rrrlasse Jan 16, 2013
7ac8f7e
MIN fix
rrrlasse Jan 16, 2013
3805ac2
gcc compile fix
rrrlasse Jan 16, 2013
f26eb26
float wip: changed Column aggregates - still not working
Jan 16, 2013
0b293f6
Merge branch 'queryspeed' of github.com:rrrlasse/tightdb into feature…
Jan 17, 2013
578617a
fixed aggregates
rrrlasse Jan 17, 2013
85ada34
warnings etc
rrrlasse Jan 17, 2013
c503450
fixed sum of float column because it failed in release mode
rrrlasse Jan 18, 2013
6e019a7
float wip.
Jan 18, 2013
c758ba9
Merge branch 'queryspeed' of github.com:rrrlasse/tightdb into feature…
Jan 18, 2013
b54adc2
unit tests for min/max on floats with infinity and maximum values rep…
rrrlasse Jan 18, 2013
5971ce5
float: All testcases now passes. (fixed average for floats that retur…
Jan 18, 2013
5f30c71
Merge branch 'queryspeed' of github.com:rrrlasse/tightdb into feature…
Jan 18, 2013
5a8e443
Float: Added Table:: aggregates for float/double. ALSO changed method…
Jan 21, 2013
1fcd527
float: removed gcc errors/warnings
Jan 21, 2013
bed3f15
float: fixed gcc warnings/errors
Jan 21, 2013
2c220b8
float: Fixed to compile with gcc - currently without full query support
Jan 22, 2013
ef13028
float: query now works - also under gcc. simplifyed some templates
Jan 23, 2013
a18f5c8
float: added TableView aggregates - all current tests passes.
Jan 23, 2013
222523c
float: added TableView::find_first_float and find_first_double
Jan 23, 2013
da591a7
float: added header to a file.
Jan 23, 2013
30d48a6
float: minor editorial fixes.
Jan 23, 2013
1722676
Merge branch 'master' of github.com:Tightdb/tightdb into feature_float
Jan 24, 2013
10b14c0
float: integrated with Tightdb/master. Now compiles under Windows.
Jan 24, 2013
9cf577d
float: fixed mem-leak in aggregates.
Jan 24, 2013
d9f9236
Column::GetAsRef() somewhat faster now.
Jan 25, 2013
5e772f0
ColumnMixed: All int64 sizes now supported (also negative ones - was …
Jan 25, 2013
88bf9b9
Cleanup of query (renaming of template args, variables, etc)
rrrlasse Jan 25, 2013
169c621
float: Removed erroneous asserts in array_basic.
Jan 28, 2013
9b55818
float:removed one gcc warning
Jan 28, 2013
8bf3646
float: removed some other gcc warnings
Jan 28, 2013
8998332
Comments and cleanup
rrrlasse Jan 28, 2013
7a366ea
Merge branch 'feature_float' of github.com:bmunkholm/tightdb into que…
rrrlasse Jan 28, 2013
b801b67
reverted main.cpp
rrrlasse Jan 28, 2013
9d3efa5
small fix
rrrlasse Jan 29, 2013
43ec65b
Merge branch 'master' into feature_float
kspangsege Jan 29, 2013
ee3bf97
float-merge: now compiles under windows.
Jan 30, 2013
f7013b2
float-merge: disabled array::sum().
Jan 30, 2013
09ac295
float-merge: Updated after review feedback in feature_float branch. S…
Jan 30, 2013
b038f68
float-merge: micro fix
Jan 30, 2013
e121624
float-merge: only comment changes.
Jan 30, 2013
03380fe
Various small fixes
kspangsege Jan 30, 2013
1a11ff2
Fix for: Various small fixes
kspangsege Jan 30, 2013
2ff4260
float_merge: Query::average() was missing default values.
Jan 31, 2013
010acda
Merge branch 'float-merge' of github.com:Tightdb/tightdb into float-m…
Jan 31, 2013
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,5 @@ Static library*/
*.opensdf
*.sdf
/tightdb.xcodeproj

/src/tightdb/array_generic_tpl.hpp
40 changes: 37 additions & 3 deletions TightDB.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<CompileAs>CompileAsCpp</CompileAs>
<AdditionalOptions>/DPTW32_STATIC_LIB /DTIGHTDB_DEBUG %(AdditionalOptions)</AdditionalOptions>
<AdditionalOptions>/DPTW32_STATIC_LIB /DTIGHTDB_DEBUG /DMAX_LIST_SIZE=1000 %(AdditionalOptions)</AdditionalOptions>
<CompileAsManaged>false</CompileAsManaged>
<DisableLanguageExtensions>false</DisableLanguageExtensions>
<DisableSpecificWarnings>4355;4996</DisableSpecificWarnings>
Expand Down Expand Up @@ -277,6 +277,7 @@
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<AdditionalOptions>/DPTW32_STATIC_LIB %(AdditionalOptions)</AdditionalOptions>
<DisableSpecificWarnings>4355;4996</DisableSpecificWarnings>
<BrowseInformation>true</BrowseInformation>
</ClCompile>
<Link>
<AdditionalDependencies>Release\UnitTest++.lib;%(AdditionalDependencies)</AdditionalDependencies>
Expand All @@ -287,6 +288,9 @@
<TargetMachine>MachineX86</TargetMachine>
<AdditionalOptions>WS2_32.lib %(AdditionalOptions)</AdditionalOptions>
</Link>
<Bscmake>
<PreserveSBR>true</PreserveSBR>
</Bscmake>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Static library, release|Win32'">
<ClCompile>
Expand Down Expand Up @@ -439,6 +443,7 @@
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Static library, debug|x64'">true</ExcludedFromBuild>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">/DUSE_SSE42 %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
<ClCompile Include="test\performance\timer.cpp" />
<ClCompile Include="test\testalloc.cpp">
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Static library, release|x64'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Static library, debug|Win32'">true</ExcludedFromBuild>
Expand All @@ -457,6 +462,12 @@
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Static library, release|Win32'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Static library, debug|x64'">true</ExcludedFromBuild>
</ClCompile>
<ClCompile Include="test\testarrayfloat.cpp">
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Static library, debug|x64'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Static library, debug|Win32'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Static library, release|Win32'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Static library, release|x64'">true</ExcludedFromBuild>
</ClCompile>
<ClCompile Include="test\testarraystring.cpp">
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Static library, release|x64'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Static library, debug|Win32'">true</ExcludedFromBuild>
Expand All @@ -481,6 +492,9 @@
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Static library, release|Win32'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Static library, debug|x64'">true</ExcludedFromBuild>
</ClCompile>
<ClCompile Include="test\testcolumnfloat.cpp">
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Static library, release|x64'">true</ExcludedFromBuild>
</ClCompile>
<ClCompile Include="test\testcolumnmixed.cpp">
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Static library, release|x64'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Static library, debug|Win32'">true</ExcludedFromBuild>
Expand Down Expand Up @@ -541,8 +555,18 @@
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Static library, release|Win32'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Static library, debug|x64'">true</ExcludedFromBuild>
</ClCompile>
<ClCompile Include="test\testtransactions_lasse.cpp" />
<ClCompile Include="test\transactions.cpp" />
<ClCompile Include="test\testtransactions_lasse.cpp">
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Static library, release|x64'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Static library, debug|Win32'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Static library, release|Win32'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Static library, debug|x64'">true</ExcludedFromBuild>
</ClCompile>
<ClCompile Include="test\transactions.cpp">
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Static library, release|x64'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Static library, debug|Win32'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Static library, release|Win32'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Static library, debug|x64'">true</ExcludedFromBuild>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="src\tightdb.hpp" />
Expand All @@ -551,13 +575,23 @@
<ClInclude Include="src\tightdb\array.hpp" />
<ClInclude Include="src\tightdb\array_binary.hpp" />
<ClInclude Include="src\tightdb\array_blob.hpp" />
<ClInclude Include="src\tightdb\array_double.hpp" />
<ClInclude Include="src\tightdb\array_float.hpp" />
<ClInclude Include="src\tightdb\array_basic.hpp" />
<ClInclude Include="src\tightdb\array_basic_tpl.hpp">
<FileType>CppHeader</FileType>
</ClInclude>
<ClInclude Include="src\tightdb\array_string.hpp" />
<ClInclude Include="src\tightdb\array_string_long.hpp" />
<ClInclude Include="src\tightdb\binary_data.hpp" />
<ClInclude Include="src\tightdb\bind_ptr.hpp" />
<ClInclude Include="src\tightdb\column.hpp" />
<ClInclude Include="src\tightdb\column_binary.hpp" />
<ClInclude Include="src\tightdb\column_double.hpp" />
<ClInclude Include="src\tightdb\column_float.hpp" />
<ClInclude Include="src\tightdb\column_fwd.hpp" />
<ClInclude Include="src\tightdb\column_basic.hpp" />
<ClInclude Include="src\tightdb\column_basic_tpl.hpp" />
<ClInclude Include="src\tightdb\column_mixed.hpp" />
<ClInclude Include="src\tightdb\column_string.hpp" />
<ClInclude Include="src\tightdb\column_string_enum.hpp" />
Expand Down
43 changes: 37 additions & 6 deletions TightDB.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -109,18 +109,12 @@
<ClCompile Include="src\tightdb\utf8.cpp">
<Filter>src</Filter>
</ClCompile>
<ClCompile Include="src\tightdb\utilities.cpp">
<Filter>src</Filter>
</ClCompile>
<ClCompile Include="src\tightdb\alloc.cpp">
<Filter>src</Filter>
</ClCompile>
<ClCompile Include="src\tightdb\alloc_slab.cpp">
<Filter>src</Filter>
</ClCompile>
<ClCompile Include="src\tightdb\array.cpp">
<Filter>src</Filter>
</ClCompile>
<ClCompile Include="src\tightdb\array_binary.cpp">
<Filter>src</Filter>
</ClCompile>
Expand Down Expand Up @@ -160,9 +154,22 @@
<ClCompile Include="test\transactions.cpp">
<Filter>test</Filter>
</ClCompile>
<ClCompile Include="test\testarrayfloat.cpp">
<Filter>test</Filter>
</ClCompile>
<ClCompile Include="test\testcolumnfloat.cpp">
<Filter>test</Filter>
</ClCompile>
<ClCompile Include="test\testtransactions_lasse.cpp">
<Filter>test</Filter>
</ClCompile>
<ClCompile Include="src\tightdb\array.cpp">
<Filter>src</Filter>
</ClCompile>
<ClCompile Include="test\performance\timer.cpp" />
<ClCompile Include="src\tightdb\utilities.cpp">
<Filter>test</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="src\win32\pthread\pthread.h">
Expand Down Expand Up @@ -342,6 +349,30 @@
<ClInclude Include="test\pthread_test.hpp">
<Filter>test</Filter>
</ClInclude>
<ClInclude Include="src\tightdb\array_float.hpp">
<Filter>src\include</Filter>
</ClInclude>
<ClInclude Include="src\tightdb\array_double.hpp">
<Filter>src\include</Filter>
</ClInclude>
<ClInclude Include="src\tightdb\column_float.hpp">
<Filter>src\include</Filter>
</ClInclude>
<ClInclude Include="src\tightdb\column_double.hpp">
<Filter>src\include</Filter>
</ClInclude>
<ClInclude Include="src\tightdb\array_basic.hpp">
<Filter>src\include</Filter>
</ClInclude>
<ClInclude Include="src\tightdb\column_basic.hpp">
<Filter>src\include</Filter>
</ClInclude>
<ClInclude Include="src\tightdb\array_basic_tpl.hpp">
<Filter>src\include</Filter>
</ClInclude>
<ClInclude Include="src\tightdb\column_basic_tpl.hpp">
<Filter>src\include</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<Filter Include="pthreads">
Expand Down
4 changes: 3 additions & 1 deletion changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ Format:
- Group::set_shared() removed.
- SharedGroup::is_valid() removed. Errors are now reported as exceptions from the constructor.


2013-01-11 (Kristian Spangsege)
+ Simplified open-mode for Group constructor.
- Group::is_valid() removed. Errors are now reported as exceptions from the constructor.
Expand All @@ -38,6 +37,9 @@ Format:
+ Mixed::set_int() added (same for other value types except subtables).
+ Removed two-argument Mixed constructor for binary data since its signature is expected to be used for strings that are not zero-terminated.

2013-01-08 (Brian Munkholm)
----------
+ New: Added a bunch of methods to support two new column types: float and double.

2012-12-16 (Kristian Spangsege)
----------
Expand Down
12 changes: 12 additions & 0 deletions config.mk-with-sse
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
SOURCE_ROOT = src

ifneq ($(CC_AND_CXX_ARE_GCC_LIKE),)
CFLAGS_DEFAULT += -Wextra -ansi -pedantic -Wno-long-long -msse4.2
# FIXME: '-fno-elide-constructors' currently causes TightDB to fail
#CFLAGS_DEBUG += -fno-elide-constructors
CFLAGS_PTHREAD += -pthread
endif

CFLAGS_DEFAULT += -DUSE_SSE42
CFLAGS_DEBUG += -DTIGHTDB_DEBUG -DMAX_LIST_SIZE=4
CFLAGS_COVERAGE += -DTIGHTDB_DEBUG -DMAX_LIST_SIZE=4
11 changes: 11 additions & 0 deletions config.mk-without-sse
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
SOURCE_ROOT = src

ifneq ($(CC_AND_CXX_ARE_GCC_LIKE),)
CFLAGS_DEFAULT += -Wextra -ansi -pedantic -Wno-long-long
# FIXME: '-fno-elide-constructors' currently causes TightDB to fail
#CFLAGS_DEBUG += -fno-elide-constructors
CFLAGS_PTHREAD += -pthread
endif

CFLAGS_DEBUG += -DTIGHTDB_DEBUG -DMAX_LIST_SIZE=4
CFLAGS_COVERAGE += -DTIGHTDB_DEBUG -DMAX_LIST_SIZE=4
Binary file added doc/development/query_engine.docx
Binary file not shown.
Binary file added doc/development/query_engine.pdf
Binary file not shown.
1 change: 0 additions & 1 deletion src/tightdb/alloc_slab.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ size_t GetSizeFromHeader(void* p)
const size_t count = (header[1] << 16) + (header[2] << 8) + header[3];
const size_t wt = (header[0] & 0x18) >> 3; // Array::WidthType

// Calculate bytes used by array
size_t bytes = 0;
if (wt == 0) { // TDB_BITS
const size_t bits = (count * width);
Expand Down
Loading