Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Add explicit test for "0" == 0, and "0" != "00" | Henning Baldersheim | 2024-01-30 | 1 | -0/+2 | |
| | ||||||
* | - 0 prefixed numbers should not be considered numeric." | Henning Baldersheim | 2024-01-30 | 2 | -1/+4 | |
| | ||||||
* | Minor cleanup | Jon Bratseth | 2024-01-28 | 19 | -87/+166 | |
| | ||||||
* | Make tensor addresses integer based instead of as strings. | Henning Baldersheim | 2024-01-25 | 27 | -328/+716 | |
| | | | | | 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 | |
| | ||||||
* | Support longhasher | Henning Baldersheim | 2024-01-25 | 2 | -0/+61 | |
| | ||||||
* | - 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 | 2 | -13/+27 | |
| | ||||||
* | Reorder tests as the indexed tests varies a lot when they are run last. ↵ | Henning Baldersheim | 2024-01-21 | 1 | -25/+31 | |
| | | | | Reason not known. | |||||
* | - 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 | 4 | -81/+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 | 2 | -2/+2 | |
| | | ||||||
* | | Add basic testing of TensorAddress | Henning Baldersheim | 2024-01-21 | 1 | -0/+44 | |
| | | ||||||
* | | 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 | 2 | -6/+32 | |
|/ | ||||||
* | Rename getIndex => getDirectIndex | Henning Baldersheim | 2024-01-20 | 3 | -7/+7 | |
| | ||||||
* | Add a class for assist efficient traversal of dimensions in an IndexedTensor. | Henning Baldersheim | 2024-01-19 | 3 | -0/+75 | |
| | ||||||
* | - 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. | |||||
* | commons-exec is no longer needed. | Henning Baldersheim | 2024-01-11 | 4 | -149/+0 | |
| | ||||||
* | Avoid deprecated methods | Henning Baldersheim | 2024-01-11 | 2 | -10/+12 | |
| | ||||||
* | Fix more xxe prevention | Morten Tokle | 2023-12-19 | 1 | -0/+15 | |
| | ||||||
* | Merge pull request #29668 from vespa-engine/lesters/slice-dimension-with-space | Jon Bratseth | 2023-12-15 | 2 | -3/+13 | |
|\ | | | | | 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 | 2 | -3/+13 | |
| | | ||||||
* | | 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 | 2 | -8/+80 | |
| | | | | | | | | This reverts commit d976f82207c09b3215661e1d034ae9a42f28a63d. | |||||
* | | Revert "add parsing of special strings for inf/nan cell values" | Henning Baldersheim | 2023-12-13 | 2 | -80/+8 | |
| | |