summaryrefslogtreecommitdiffstats
path: root/searchlib
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused variables.Tor Egge2021-03-131-1/+0
|
* handle more cell typesArne Juul2021-03-121-15/+11
|
* Add dictionary configHenning Baldersheim2021-03-111-0/+17
|
* Add lock free hash map.Tor Egge2021-03-101-0/+4
|
* Add simple equal to Comparator interface.Henning Baldersheim2021-03-096-60/+111
|
* Merge pull request #16858 from ↵Henning Baldersheim2021-03-099-43/+43
|\ | | | | | | | | vespa-engine/balder/prepare-for-multiple-compare-methods Convert comparator from being a simple comparator to using an explici…
| * Convert comparator from being a simple comparator to using an explicit less ↵Henning Baldersheim2021-03-099-43/+43
| | | | | | | | method.
* | avoid explicit switch on cell typesArne Juul2021-03-093-16/+8
|/ | | | | * use CellTypeUtils::mem_size utility which does exactly what we need instead.
* Use std::make_sharedHenning Baldersheim2021-03-084-12/+10
|
* Merge pull request #16804 from vespa-engine/balder/keep-one-ucs4-versionHenning Baldersheim2021-03-0511-289/+312
|\ | | | | Keep only one ucs4 buffer, and create the buffer lazy.
| * Remove default constructors and simplify.Henning Baldersheim2021-03-056-57/+27
| | | | | | | | Use atomic pointer to get proper memory visibility.
| * Use std::atomic<bool> to get barriers.Henning Baldersheim2021-03-041-7/+5
| |
| * No move or copy construction.Henning Baldersheim2021-03-043-198/+251
| |
| * Keep only one ucs4 buffer, and create the buffer lazy.Henning Baldersheim2021-03-049-51/+53
| |
* | all scalars must be doubleHåvard Pettersen2021-03-048-18/+22
|/ | | | and all operation results must be at least float
* Make the SearchTerm enum a small scoped enum and rename to Type.Henning Baldersheim2021-03-0414-131/+139
|
* The default implementation of SearchContext::onFind was danegrous and not ↵Henning Baldersheim2021-03-046-60/+14
| | | | | | thread safe. However it was luckily only used in test. Rewrote test and removed code.
* Make the StringSearchContext smaller.Henning Baldersheim2021-03-044-45/+58
| | | | | - Rearrange members. - Skip std::optional on Regex.
* Remove the need for friend declarations.Henning Baldersheim2021-03-046-22/+13
|
* Remove friend declarations no longer needed.Henning Baldersheim2021-03-043-5/+0
|
* Use unique_ptr for regex instead of shared_ptr to keep object small.Henning Baldersheim2021-03-042-113/+70
| | | | There is not need for it to be copied and it is used a few places where size is important.
* minBvCocFreq -> minBvDocFreqHenning Baldersheim2021-03-041-2/+2
|
* GC unused typeddefs and params.Henning Baldersheim2021-03-0310-31/+15
|
* Take dead elements into account (and subtract them) when calculating how ↵Geir Storli2021-03-011-4/+29
| | | | | | | | | | | | many arrays to allocate in a datastore buffer. This avoids a problem were allocated memory can accumulate over time in components using an ArrayStore. If all documents in an array attribute vector changes from one value class to another, all elements in the buffers of the previous value class are marked dead. Those buffers will eventually be compacted. Without this fix the wanted size of the resulting compacted buffer is calculated too high, and we allocate memory we are not going to use. If we move to yet another value class later, the same problem occurs again and more memory is allocated.
* Use an enum to avoid dangerous implicit type conversionHenning Baldersheim2021-02-271-8/+9
|
* Put all params for commit into a single CommitParam structHenning Baldersheim2021-02-273-12/+46
|
* Merge pull request #16690 from vespa-engine/geirst/refactor-datastore-classesGeir Storli2021-02-268-8/+8
|\ | | | | Refactor datastore classes
| * Rename 'active' buffer to 'primary' buffer in DataStoreBase.Geir Storli2021-02-268-8/+8
| | | | | | | | | | | | This should avoid confusion with the buffer state ACTIVE. Each buffer type has exactly one primary buffer that is used for allocations when no slots in free lists exist. A buffer type will typically use several buffers to store data, all of them being on state ACTIVE when in use.
* | Reserve reasonably sized buffer upfront to keep memory footprint stableHenning Baldersheim2021-02-252-9/+22
| |
* | Remove includes no longer necessary.Henning Baldersheim2021-02-258-33/+8
| |
* | Avoid including singlenumericattribute.hppHenning Baldersheim2021-02-256-13/+10
|/
* expect QRS to always send distance thresholdArne Juul2021-02-241-7/+4
|
* move getting tensor into the attribute codeArne Juul2021-02-224-9/+36
| | | | | * avoids taking an extra copy of the tensor in the DirectTensorAttribute case
* string.h does not need alloc.hHenning Baldersheim2021-02-2111-11/+17
|
* Eliminate array bounds warning.Tor Egge2021-02-211-0/+5
|
* Merge pull request #16495 from vespa-engine/arnej/add-size-literalsArne H Juul2021-02-1658-136/+194
|\ | | | | add literals for sizes in KB, MB, and GB
| * use size literals in searchlibArne Juul2021-02-1558-136/+194
| |
* | Rename get_memory_allocator to make_memory_allocator in mmap file allocatorTor Egge2021-02-151-1/+1
| | | | | | | | factory. Remove virtual keyword.
* | Use mmap file allocator in dense tensor attribute if huge flag isTor Egge2021-02-155-8/+53
|/ | | | set in config.
* Add alloc_aligned member function.Tor Egge2021-02-132-4/+2
|
* Forward declare MemoryAllocator in vespalib/util/alloc.h.Tor Egge2021-02-136-0/+6
|
* Less asserts in header files.Henning Baldersheim2021-02-1321-58/+70
|
* Add unit tests for active boundary checks.Tor Egge2021-02-123-0/+36
|
* Add comments.Tor Egge2021-02-123-0/+3
|
* Reenable boundary checks when mapping lid to lid for referenced document type.Tor Egge2021-02-113-3/+5
|
* Merge pull request #16406 from vespa-engine/balder/gc-unused-codeHenning Baldersheim2021-02-056-52/+22
|\ | | | | GC unused template
| * Add override and noexcept.Henning Baldersheim2021-02-052-2/+2
| |
| * Some code healthHenning Baldersheim2021-02-054-43/+20
| |
| * GC unused templateHenning Baldersheim2021-02-051-7/+0
| |
* | Fix onhold accounting for SerializedFastValueAttribute.Tor Egge2021-02-052-1/+16
| |