Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Make tensor addresses integer based instead of as strings. | Henning Baldersheim | 2024-01-25 | 22 | -298/+630 |
| | | | | | Positive numbers are direct indexes, while strings that does not represent numbers are enumerated and represented with negative integers. | ||||
* | Add TensorAdressAny.java | Henning Baldersheim | 2024-01-25 | 2 | -0/+21 |
| | |||||
* | - Replace usage of putIfAbsent and manual optimizes get-if-not-put with ↵ | Henning Baldersheim | 2024-01-22 | 4 | -16/+7 |
| | | | | computeIfAbsent. | ||||
* | Make address generation more efficient, also prepare for presizing during build. | Henning Baldersheim | 2024-01-22 | 1 | -23/+37 |
| | |||||
* | Extract label once. | Henning Baldersheim | 2024-01-22 | 2 | -3/+3 |
| | |||||
* | - Using optional in the inner loop is often very inefficient. It bloats the code | Henning Baldersheim | 2024-01-22 | 2 | -3/+10 |
| | | | | and most of the time hampers the compilers abilitity to inline and optimize. | ||||
* | Make tests independent of hash function | Henning Baldersheim | 2024-01-21 | 1 | -1/+2 |
| | |||||
* | Use lz4-java and xxhash32 | Henning Baldersheim | 2024-01-21 | 1 | -4/+16 |
| | |||||
* | - Add and use getAsDouble method returning a Double object. It behaves ↵ | Henning Baldersheim | 2024-01-21 | 6 | -8/+37 |
| | | | | | | | 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-builder | Henning Baldersheim | 2024-01-21 | 3 | -79/+71 |
|\ | | | | | - Avoid expensive iteration with hash lookups just for sanity checkin… | ||||
| * | - Avoid expensive iteration with hash lookups just for sanity checking in ↵ | Henning Baldersheim | 2024-01-21 | 3 | -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 Baldersheim | 2024-01-21 | 2 | -20/+7 |
|/ | |||||
* | - Use get(key) instead of containsKey to avoid extra lookup. | Henning Baldersheim | 2024-01-21 | 1 | -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 Baldersheim | 2024-01-21 | 1 | -5/+7 |
| | |||||
* | Merge pull request #29993 from ↵ | Jon Bratseth | 2024-01-21 | 9 | -33/+54 |
|\ | | | | | | | | | 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 Baldersheim | 2024-01-21 | 6 | -20/+17 |
| | | |||||
| * | - Extract dimension names in a set to avoid recomputing it in ↵ | Henning Baldersheim | 2024-01-21 | 4 | -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 => withSeed | Henning Baldersheim | 2024-01-21 | 1 | -1/+1 |
| | | |||||
* | | Must handle null dimensions. | Henning Baldersheim | 2024-01-21 | 1 | -1/+4 |
| | | |||||
* | | Use a LinkedHashMap to make json tests independant of hash function. | Henning Baldersheim | 2024-01-21 | 1 | -1/+2 |
| | | |||||
* | | - Use xxh3 hash for better hashing, and cache the hash value. | Henning Baldersheim | 2024-01-21 | 1 | -6/+15 |
|/ | |||||
* | Rename getIndex => getDirectIndex | Henning Baldersheim | 2024-01-20 | 2 | -3/+3 |
| | |||||
* | Add a class for assist efficient traversal of dimensions in an IndexedTensor. | Henning Baldersheim | 2024-01-19 | 2 | -0/+42 |
| | |||||
* | - Move computation of productOfDimensionsAfter to DimensionSizes. | Henning Baldersheim | 2024-01-18 | 2 | -47/+45 |
| | | | | - And then precompute them construction time. | ||||
* | Construct array right away instead of going via a single element list and ↵ | Henning Baldersheim | 2024-01-18 | 3 | -4/+4 |
| | | | | the java stream api. | ||||
* | Skip copying of array when there is no reuse possible. | Henning Baldersheim | 2024-01-18 | 5 | -10/+16 |
| | |||||
* | - Make an tensor.impl package that can be used from other tensor packages ↵ | Henning Baldersheim | 2024-01-18 | 5 | -89/+125 |
| | | | | | | | | | allowing bypass of defensive strategies in the public interfaces. - Move private static inner classes TensorAddress.NumericTensorAddress and TensorAddress.StringTensorAddress to tensor.impl package. - Use the StringTensorAddress.of from Reduce to avoid defensive array copy. | ||||
* | - Add sizeAsInt to allow for safe cast from long to int of the size of a tensor. | Henning Baldersheim | 2024-01-18 | 7 | -12/+37 |
| | |||||
* | Update vespajlib/src/main/java/com/yahoo/tensor/functions/Reduce.java | Henning Baldersheim | 2024-01-18 | 1 | -1/+1 |
| | | | | | Unify whitespace Co-authored-by: Jon Bratseth <bratseth@gmail.com> | ||||
* | Update vespajlib/src/main/java/com/yahoo/tensor/functions/Reduce.java | Henning Baldersheim | 2024-01-18 | 1 | -1/+1 |
| | | | | | Unify whitespace Co-authored-by: Jon Bratseth <bratseth@gmail.com> | ||||
* | Update vespajlib/src/main/java/com/yahoo/tensor/functions/Reduce.java | Henning Baldersheim | 2024-01-18 | 1 | -1/+1 |
| | | | | | Unify whitespace Co-authored-by: Jon Bratseth <bratseth@gmail.com> | ||||
* | Update vespajlib/src/main/java/com/yahoo/tensor/functions/Reduce.java | Henning Baldersheim | 2024-01-18 | 1 | -1/+1 |
| | | | | | Unify whitespace Co-authored-by: Jon Bratseth <bratseth@gmail.com> | ||||
* | Update vespajlib/src/main/java/com/yahoo/tensor/functions/Reduce.java | Henning Baldersheim | 2024-01-18 | 1 | -1/+1 |
| | | | | | Unify whitespace Co-authored-by: Jon Bratseth <bratseth@gmail.com> | ||||
* | Reverse the problem from indexes-to-remove to indexes-to-keep. Then you ↵ | Henning Baldersheim | 2024-01-17 | 1 | -13/+19 |
| | | | | avoid hash lookup in inner loop. | ||||
* | Create set of indexes to remove once. | Henning Baldersheim | 2024-01-17 | 2 | -5/+14 |
| | |||||
* | Allocate a larger hashtable to avoid expensive resize and associated ↵ | Henning Baldersheim | 2024-01-17 | 1 | -1/+1 |
| | | | | equals/hash method calls. | ||||
* | Merge pull request #29668 from vespa-engine/lesters/slice-dimension-with-space | Jon Bratseth | 2023-12-15 | 1 | -3/+4 |
|\ | | | | | Add string indicators for dimensions with spaces in slice tostring | ||||
| * | Add string indicators for dimensions with spaces in slice tostring | Lester Solbakken | 2023-12-15 | 1 | -3/+4 |
| | | |||||
* | | fallback to parseDouble | Arne Juul | 2023-12-14 | 1 | -1/+1 |
| | | |||||
* | | Reapply "add parsing of special strings for inf/nan cell values" | Arne Juul | 2023-12-14 | 1 | -8/+33 |
| | | | | | | | | This reverts commit d976f82207c09b3215661e1d034ae9a42f28a63d. | ||||
* | | Revert "add parsing of special strings for inf/nan cell values" | Henning Baldersheim | 2023-12-13 | 1 | -33/+8 |
| | | |||||
* | | handle JSON null as NaN | Arne Juul | 2023-12-11 | 1 | -6/+9 |
| | | |||||
* | | add parsing of special strings for inf/nan cell values | Arne Juul | 2023-12-11 | 1 | -5/+27 |
|/ | |||||
* | handle "blocks" syntax for mixed tensors with multiple indexed dimensions | Arne Juul | 2023-12-01 | 1 | -4/+14 |
| | |||||
* | sparseAddr -> sparseAddress | Arne Juul | 2023-11-09 | 3 | -14/+14 |
| | |||||
* | expose dense subspace blocks for serializing | Arne Juul | 2023-11-09 | 4 | -63/+57 |
| | |||||
* | add more details if validation fails | Arne Juul | 2023-11-09 | 1 | -4/+13 |
| | |||||
* | try to improve hashCode/equals | Arne Juul | 2023-11-08 | 1 | -2/+13 |
| | |||||
* | store cells in blocks for MixedTensor | Arne Juul | 2023-11-08 | 1 | -119/+152 |
| | |||||
* | fix toString() and dimensionNames() | Arne Juul | 2023-11-02 | 2 | -3/+3 |
| |