summaryrefslogtreecommitdiffstats
path: root/vespalib
Commit message (Collapse)AuthorAgeFilesLines
* Ignore clang warning (-Wself-assign-overloaded).Tor Egge2021-01-111-0/+7
|
* Merge pull request #15991 from ↵Henning Baldersheim2021-01-111-2/+2
|\ | | | | | | | | vespa-engine/toregge/buffertype-class-has-two-template-arguments BufferType class has two template arguments.
| * BufferType class has two template arguments.Tor Egge2021-01-111-2/+2
| |
* | Use 8 bits for _state field.Tor Egge2021-01-111-1/+1
|/
* Merge pull request #15986 from vespa-engine/havardpe/string-id-cleanupArne H Juul2021-01-114-121/+283
|\ | | | | add string_id and simplify multi-handle container
| * fixup after PR commentsHåvard Pettersen2021-01-113-2/+10
| |
| * add string_id and simplify multi-handle containerHåvard Pettersen2021-01-114-121/+275
| | | | | | | | | | | | | | add more testing static instance instead of lazy singleton use logging for leak detection drop label_t type alias
* | Update test and add instantiations.Henning Baldersheim2021-01-112-6/+6
| |
* | ElemCount must be larger than 32 bits.Henning Baldersheim2021-01-101-1/+1
| |
* | Update copyright.Henning Baldersheim2021-01-101-1/+1
| |
* | Update copyright.Henning Baldersheim2021-01-102-2/+2
| |
* | Add eolHenning Baldersheim2021-01-103-3/+3
| |
* | Have the BufferType::_emptyEntry be static.Henning Baldersheim2021-01-1026-190/+365
| | | | | | | | Use an array of buffer types in the array class.
* | The bufferstate vector normally has 8k elements. Since the BufferState was ↵Henning Baldersheim2021-01-105-74/+87
|/ | | | | | | | 160 bytes this is aroung 1.2M. This reduces the BufferState to 128 making it fit nicely in a 1M allocation. However the cost is that you get an extra small allocation for the _freeList. We should see if we could reclain that by further reducing the size of the BufferState. Perhaps the element count will be sufficient with uint32_t.
* use string ids as tensor labelsHåvard Pettersen2021-01-052-21/+88
|
* Include algorithm header file when needed.Tor Egge2021-01-041-0/+1
|
* Add braces for conditional statements.Tor Egge2021-01-041-2/+3
|
* Merge pull request #15887 from vespa-engine/arnej/abort-instead-of-infinite-loopTor Egge2021-01-041-3/+14
|\ | | | | avoid infinite loop
| * avoid infinite loopArne Juul2021-01-041-3/+14
| | | | | | | | | | * try all possible buffer ids, if none are free abort(). This instead of spinning in an infinite loop.
* | Add noexcept specifier to vespalib::string compare operators.Tor Egge2021-01-041-20/+20
|/
* Merge pull request #15816 from ↵Henning Baldersheim2020-12-153-0/+14
|\ | | | | | | | | vespa-engine/geirst/executor-threading-service-explorer Add explorer for the ExecutorThreadingService used in a document data…
| * Add explorer for the ExecutorThreadingService used in a document database.Geir Storli2020-12-153-0/+14
| |
* | Only let reindexing puts through locked bucket if their token matches that ↵Tor Brede Vekterli2020-12-113-0/+25
|/ | | | | | | | | | | of the lock Avoids race condition edge case where reindexing puts from an outdated visitor may pass through a bucket lock intended for a newly created visitor operation Tokens are 128-bit values derived from a CSPRNG, so uniqueness is for all intents and purposes guaranteed.
* Simplify simple method to find next hashtable size.Henning Baldersheim2020-12-072-23/+6
|
* some more shared string repo experimentsHåvard Pettersen2020-12-073-30/+165
| | | | | | | | | - use linked free list - wait with string overwrite until re-use - benchmark copy+hash and local-enum as well - experiment with hashtable force_insert - also benchmark strong/weak handle containers - benchmark for longer, since there are many things
* Use Select1stHenning Baldersheim2020-12-071-7/+3
|
* Expect that all are present after resize too.Henning Baldersheim2020-12-071-1/+8
|
* Add a force_insert method to the hash_table. It is faster as it skips the ↵Henning Baldersheim2020-12-073-3/+71
| | | | | | | presence check and avoid equality compare. It allows duplicates and should hence be used carefully. At least resize will be faster as it it can safely be used there.
* Merge pull request #15708 from vespa-engine/havardpe/avoid-extra-checkHenning Baldersheim2020-12-071-4/+1
|\ | | | | avoid unneeded check
| * avoid unneeded checkHåvard Pettersen2020-12-071-4/+1
| |
* | Merge pull request #15695 from vespa-engine/balder/optional-wakeup-handlingHenning Baldersheim2020-12-072-2/+11
|\ \ | | | | | | Only handle wakeup if necessary.
| * | Only handle wakeup if necessary.Henning Baldersheim2020-12-052-2/+11
| | |
* | | Some -std=c++20a fixes:Arne Juul2020-12-061-1/+1
|/ / | | | | | | | | | | | | add noexcept de-inline destructor avoid comparison warning (and revert changes already made in another branch)
* / Add noexcept specifiers to non-throwing constructors and operators.Tor Egge2020-12-053-4/+4
|/
* Add missing includes. Fix format string.Tor Egge2020-12-042-0/+2
|
* Merge pull request #15667 from ↵Henning Baldersheim2020-12-041-0/+2
|\ | | | | | | | | vespa-engine/toregge/remove-unneeded-operators-for-string-compare Remove unneeded operators for string compare.
| * Remove unneeded operators for string compare.Tor Egge2020-12-041-0/+2
| |
* | Add noexcept specifier to non-throwing member functions.Tor Egge2020-12-041-1/+1
|/
* Use std::atomic.Tor Egge2020-12-032-19/+21
|
* Don't increment or decrement volatile variables. It is deprecatedTor Egge2020-12-032-8/+8
| | | | when using C++20.
* Be explicit wether size is give or notHenning Baldersheim2020-12-024-3/+15
|
* Allocate once with the correct sizeHenning Baldersheim2020-12-022-26/+37
|
* Put the next link at the end to allow closer packing if alignment allows.Henning Baldersheim2020-12-021-5/+5
|
* Make it compatible with c++2aHenning Baldersheim2020-12-022-10/+15
|
* We must keep the handling in the selector still.Henning Baldersheim2020-11-301-0/+1
|
* Simplify and use a single events_before_wakup number in the transport thread ↵Henning Baldersheim2020-11-301-1/+0
| | | | for controlling wakeup frequency.
* Use std::make_unique and hide actual ThreadExecutor implementation.Henning Baldersheim2020-11-292-8/+14
|
* use singleton object instead of static membersHåvard Pettersen2020-11-262-16/+29
| | | | this is to avoid having to create a repo when it is not used
* improve and clean up unit testHåvard Pettersen2020-11-262-28/+33
|
* check for 0 id more placesHåvard Pettersen2020-11-261-13/+13
| | | | | also cut some documentation, since we only have one handle type for now.