summaryrefslogtreecommitdiffstats
path: root/vespajlib
Commit message (Collapse)AuthorAgeFilesLines
* Add default constructor for TinyIdentitySetHenning Baldersheim2024-03-111-1/+4
|
* Move ExponentialBackoff to vespajlibMartin Polden2024-03-052-0/+78
|
* Don't use optional variants for primitive typesBjørn Christian Seime2024-02-291-4/+2
|
* Various improvements to `Json`Bjørn Christian Seime2024-02-272-2/+36
|
* Export packageValerij Fredriksen2024-02-261-0/+5
|
* Move Json to vespajlibValerij Fredriksen2024-02-263-0/+380
|
* Add fluent builderBjørn Christian Seime2024-02-151-1/+1
|
* Proxy endpoint certificate secrets through EndpointCertificateSecretStoreMorten Tokle2024-02-132-0/+34
|
* - Drop the optimization from long to int and just use long throughout.Henning Baldersheim2024-02-1012-121/+102
| | | | - That enables that numeric hashes are also handled efficiently, without resorting to strings.
* Support embedding into rank 3 tensorsJon Bratseth2024-02-021-0/+1
|
* Reverse the problem to match the interface of TensorAddress.partialCopyHenning Baldersheim2024-02-011-6/+2
|
* Update abi.Henning Baldersheim2024-02-012-1/+2
|
* - Use numericLabel over label for address manipulation.Henning Baldersheim2024-02-017-51/+36
| | | | - Only use label when actual string representation is needed.
* Limit optimization to bound types, which is the prevalent kind.Henning Baldersheim2024-01-311-23/+27
|
* Update abiHenning Baldersheim2024-01-311-0/+2
|
* - Make separate path for reduction of indexed tensors.Henning Baldersheim2024-01-312-6/+74
| | | | | | | - This brough down reduce time from 60s to 3.7s or a factor of 16x for the splade embedder if using reduce. This is ontop of the 1.5x improvement with https://github.com/vespa-engine/vespa/pull/30112 - A reduce based splade embedder now uses 8.0s vs 7.0s for a custom rolled out version, translated to 14% overhead. Please enter the commit message for your changes. Lines starting
* Use already optimize TensorAddress.partialCopy to reduce dimensions.Henning Baldersheim2024-01-301-9/+2
|
* Add copyright and minor cleanup.Henning Baldersheim2024-01-301-2/+2
|
* Add explicit test for "0" == 0, and "0" != "00"Henning Baldersheim2024-01-301-0/+2
|
* - 0 prefixed numbers should not be considered numeric."Henning Baldersheim2024-01-302-1/+4
|
* Minor cleanupJon Bratseth2024-01-2820-89/+168
|
* Make tensor addresses integer based instead of as strings.Henning Baldersheim2024-01-2528-331/+725
| | | | | Positive numbers are direct indexes, while strings that does not represent numbers are enumerated and represented with negative integers.
* Add TensorAdressAny.javaHenning Baldersheim2024-01-252-0/+21
|
* Support longhasherHenning Baldersheim2024-01-252-0/+61
|
* - Replace usage of putIfAbsent and manual optimizes get-if-not-put with ↵Henning Baldersheim2024-01-225-16/+8
| | | | computeIfAbsent.
* Make address generation more efficient, also prepare for presizing during build.Henning Baldersheim2024-01-221-23/+37
|
* Extract label once.Henning Baldersheim2024-01-222-3/+3
|
* - Using optional in the inner loop is often very inefficient. It bloats the codeHenning Baldersheim2024-01-222-3/+10
| | | | and most of the time hampers the compilers abilitity to inline and optimize.
* Make tests independent of hash functionHenning Baldersheim2024-01-211-1/+2
|
* Use lz4-java and xxhash32Henning Baldersheim2024-01-212-13/+27
|
* Reorder tests as the indexed tests varies a lot when they are run last. ↵Henning Baldersheim2024-01-211-25/+31
| | | | Reason not known.
* - Add and use getAsDouble method returning a Double object. It behaves ↵Henning Baldersheim2024-01-217-8/+41
| | | | | | | similar to Map.get(key). null indicates no value present. Then you avoid 2 lookups to first check if a value is present, and then to fetch that value. This does wonders when it is backed by a map and hashCode/equals are relatively expensive.
* Merge pull request #29996 from vespa-engine/balder/do-sanity-checking-in-builderHenning Baldersheim2024-01-213-79/+71
|\ | | | | - Avoid expensive iteration with hash lookups just for sanity checkin…
| * - Avoid expensive iteration with hash lookups just for sanity checking in ↵Henning Baldersheim2024-01-213-79/+71
| | | | | | | | | | | | private MixedTensor constructor. - Refactor so there is less need for sanity checks, and do them in the buiulder instead.
* | Revert "Balder/cached xxh3 hash"Henning Baldersheim2024-01-214-81/+7
|/
* - Use get(key) instead of containsKey to avoid extra lookup.Henning Baldersheim2024-01-211-25/+15
| | | | - Enough to use only array[long] and convert directly. No need to create temporary TensorAddress.
* Cache size of intersected sets, as they are recomputed every time.Henning Baldersheim2024-01-211-5/+7
|
* Merge pull request #29993 from ↵Jon Bratseth2024-01-2110-33/+57
|\ | | | | | | | | vespa-engine/balder/precompute-type-related-information-once - Extract dimension names in a set to avoid recomputing it in dimensi…
| * Make the TensorType.hasXX public and use them other places too.Henning Baldersheim2024-01-217-20/+20
| |
| * - Extract dimension names in a set to avoid recomputing it in ↵Henning Baldersheim2024-01-214-16/+40
| | | | | | | | | | | | | | dimensionNames() mathod. - Also extract some information about what kind of dimensions a tensor has construcion time. This avoids streamin through all diemsion later on, and keeps this local in the TensorType.
* | of => withSeedHenning Baldersheim2024-01-212-2/+2
| |
* | Add basic testing of TensorAddressHenning Baldersheim2024-01-211-0/+44
| |
* | Must handle null dimensions.Henning Baldersheim2024-01-211-1/+4
| |
* | Use a LinkedHashMap to make json tests independant of hash function.Henning Baldersheim2024-01-211-1/+2
| |
* | - Use xxh3 hash for better hashing, and cache the hash value.Henning Baldersheim2024-01-212-6/+32
|/
* Rename getIndex => getDirectIndexHenning Baldersheim2024-01-204-8/+8
|
* Add a class for assist efficient traversal of dimensions in an IndexedTensor.Henning Baldersheim2024-01-194-0/+91
|
* - Move computation of productOfDimensionsAfter to DimensionSizes.Henning Baldersheim2024-01-182-47/+45
| | | | - And then precompute them construction time.
* Construct array right away instead of going via a single element list and ↵Henning Baldersheim2024-01-183-4/+4
| | | | the java stream api.
* Skip copying of array when there is no reuse possible.Henning Baldersheim2024-01-185-10/+16
|