VictoriaMetrics/lib/logstorage
Aliaksandr Valialkin 32193b6059
lib/encoding: optimize UnmarshalVarUint64, UnmarshalVarInt64 and UnmarshalBytes a bit
Change the return values for these functions - now they return the unmarshaled result plus
the size of the unmarshaled result in bytes, so the caller could re-slice the src for further unmarshaling.

This improves performance of these functions in hot loops of VictoriaLogs a bit.
2024-05-14 01:30:25 +02:00
..
arena.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
arena_test.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
bitmap.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
bitmap_test.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
block.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
block_data.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
block_data_test.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
block_header.go lib/encoding: optimize UnmarshalVarUint64, UnmarshalVarInt64 and UnmarshalBytes a bit 2024-05-14 01:30:25 +02:00
block_header_test.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
block_result.go lib/logstorage: make linter happy 2024-05-13 16:49:37 +02:00
block_search.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
block_stream_merger.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
block_stream_reader.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
block_stream_writer.go chore: fix function names in comment (#6076) 2024-04-08 15:38:51 +02:00
block_test.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
block_timing_test.go app/victoria-logs: initial code release 2023-07-06 17:30:05 -07:00
bloomfilter.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
bloomfilter_test.go app/victoria-logs: initial code release 2023-07-06 17:30:05 -07:00
consts.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
datadb.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
datadb_test.go app/victoria-logs: initial code release 2023-07-06 17:30:05 -07:00
encoding.go lib/encoding: optimize UnmarshalVarUint64, UnmarshalVarInt64 and UnmarshalBytes a bit 2024-05-14 01:30:25 +02:00
encoding_test.go lib/logstorage: fix make test-pure tests 2023-07-06 22:22:08 -07:00
encoding_timing_test.go app/victoria-logs: initial code release 2023-07-06 17:30:05 -07:00
fields_set.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
fields_set_test.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
filenames.go app/victoria-logs: initial code release 2023-07-06 17:30:05 -07:00
filter.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
filter_and.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
filter_and_test.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
filter_any_case_phrase.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
filter_any_case_phrase_test.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
filter_any_case_prefix.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
filter_any_case_prefix_test.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
filter_exact.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
filter_exact_prefix.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
filter_exact_prefix_test.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
filter_exact_test.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
filter_in.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
filter_in_test.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
filter_ipv4_range.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
filter_ipv4_range_test.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
filter_len_range.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
filter_len_range_test.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
filter_noop.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
filter_not.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
filter_not_test.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
filter_or.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
filter_or_test.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
filter_phrase.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
filter_phrase_test.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
filter_prefix.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
filter_prefix_test.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
filter_range.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
filter_range_test.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
filter_regexp.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
filter_regexp_test.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
filter_sequence.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
filter_sequence_test.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
filter_stream.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
filter_string_range.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
filter_string_range_test.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
filter_test.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
filter_time.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
filter_time_test.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
filter_timing_test.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
hash128.go app/victoria-logs: initial code release 2023-07-06 17:30:05 -07:00
hash128_test.go app/victoria-logs: initial code release 2023-07-06 17:30:05 -07:00
hash128_timing_test.go lib/logstorage: consistently use atomic.* types instead of atomic.* functions on regular types 2024-02-24 00:29:39 +02:00
index_block_header.go app/victoria-logs: initial code release 2023-07-06 17:30:05 -07:00
index_block_header_test.go app/victoria-logs: initial code release 2023-07-06 17:30:05 -07:00
indexdb.go lib/encoding: optimize UnmarshalVarUint64, UnmarshalVarInt64 and UnmarshalBytes a bit 2024-05-14 01:30:25 +02:00
indexdb_test.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
inmemory_part.go app/victoria-logs: initial code release 2023-07-06 17:30:05 -07:00
inmemory_part_test.go lib/logstorage: go fmt 2023-07-06 22:24:18 -07:00
inmemory_part_timing_test.go app/victoria-logs: initial code release 2023-07-06 17:30:05 -07:00
log_rows.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
log_rows_timing_test.go app/victoria-logs: initial code release 2023-07-06 17:30:05 -07:00
parser.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
parser_test.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
part.go app/victoria-logs: initial code release 2023-07-06 17:30:05 -07:00
part_header.go app/victoria-logs: initial code release 2023-07-06 17:30:05 -07:00
part_header_test.go app/victoria-logs: initial code release 2023-07-06 17:30:05 -07:00
partition.go lib/logstorage: follow-up for 8a23d08c21 2023-10-02 20:38:00 +02:00
partition_test.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
pipe.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
pipe_copy.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
pipe_copy_test.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
pipe_delete.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
pipe_delete_test.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
pipe_fields.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
pipe_fields_test.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
pipe_limit.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
pipe_offset.go lib/logstorage: make linter happy 2024-05-13 16:49:37 +02:00
pipe_rename.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
pipe_rename_test.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
pipe_sort.go lib/logstorage: make linter happy 2024-05-13 16:49:37 +02:00
pipe_sort_test.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
pipe_stats.go lib/encoding: optimize UnmarshalVarUint64, UnmarshalVarInt64 and UnmarshalBytes a bit 2024-05-14 01:30:25 +02:00
pipe_stats_test.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
pipe_uniq.go lib/encoding: optimize UnmarshalVarUint64, UnmarshalVarInt64 and UnmarshalBytes a bit 2024-05-14 01:30:25 +02:00
pipe_uniq_test.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
rows.go lib/encoding: optimize UnmarshalVarUint64, UnmarshalVarInt64 and UnmarshalBytes a bit 2024-05-14 01:30:25 +02:00
rows_test.go app/victoria-logs: initial code release 2023-07-06 17:30:05 -07:00
stats_avg.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
stats_count.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
stats_count_empty.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
stats_count_uniq.go lib/logstorage: make linter happy 2024-05-13 16:49:37 +02:00
stats_max.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
stats_min.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
stats_sum.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
stats_uniq_values.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
stats_values.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
storage.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
storage_search.go lib/logstorage: make linter happy 2024-05-13 16:49:37 +02:00
storage_search_test.go lib/logstorage: make linter happy 2024-05-13 16:49:37 +02:00
storage_test.go lib/logstorage: follow-up for 8a23d08c21 2023-10-02 20:38:00 +02:00
stream_filter.go lib/logstorage: avoid panic when parsing regex with stream filter (#5897) 2024-02-29 15:32:25 +02:00
stream_id.go app/victoria-logs: initial code release 2023-07-06 17:30:05 -07:00
stream_id_test.go app/victoria-logs: initial code release 2023-07-06 17:30:05 -07:00
stream_tags.go lib/encoding: optimize UnmarshalVarUint64, UnmarshalVarInt64 and UnmarshalBytes a bit 2024-05-14 01:30:25 +02:00
stringbucket.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
tenant_id.go app/vlinsert/loki: follow-up after 09df5b66fd 2023-07-20 21:52:11 -07:00
tenant_id_test.go app/vlinsert: add support of loki push protocol (#4482) 2023-07-20 16:49:43 -07:00
tokenizer.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
tokenizer_test.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
tokenizer_timing_test.go app/victoria-logs: initial code release 2023-07-06 17:30:05 -07:00
u128.go app/victoria-logs: initial code release 2023-07-06 17:30:05 -07:00
u128_test.go app/victoria-logs: initial code release 2023-07-06 17:30:05 -07:00
values_encoder.go lib/encoding: optimize UnmarshalVarUint64, UnmarshalVarInt64 and UnmarshalBytes a bit 2024-05-14 01:30:25 +02:00
values_encoder_test.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00
values_encoder_timing_test.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:36:01 +02:00