influxdb/models
Mark Rushakoff 15ba7958f8 Use strings.Replacer to escape string field
benchmark                                        old ns/op     new ns/op     delta
BenchmarkEscapeStringField_Plain-4               167           65.3          -60.90%
BenchmarkEscapeString_Quotes-4                   167           165           -1.20%
BenchmarkEscapeString_Backslashes-4              211           184           -12.80%
BenchmarkEscapeString_QuotesAndBackslashes-4     413           397           -3.87%

BenchmarkExportTSMStrings_100s_250vps-4     33833611      27381442           -19.07%
BenchmarkExportWALStrings_100s_250vps-4     34977761      29222717           -16.45%

benchmark                                        old allocs     new allocs     delta
BenchmarkEscapeStringField_Plain-4               4              1              -75.00%
BenchmarkEscapeString_Quotes-4                   4              3              -25.00%
BenchmarkEscapeString_Backslashes-4              5              3              -40.00%
BenchmarkEscapeString_QuotesAndBackslashes-4     9              5              -44.44%

BenchmarkExportTSMStrings_100s_250vps-4     201605          76938              -61.84%
BenchmarkExportWALStrings_100s_250vps-4     225371         100728              -55.31%

benchmark                                        old bytes     new bytes     delta
BenchmarkEscapeStringField_Plain-4               56            16            -71.43%
BenchmarkEscapeString_Quotes-4                   56            48            -14.29%
BenchmarkEscapeString_Backslashes-4              104           80            -23.08%
BenchmarkEscapeString_QuotesAndBackslashes-4     208           160           -23.08%

BenchmarkExportTSMStrings_100s_250vps-4     10872629       6062048           -44.24%
BenchmarkExportWALStrings_100s_250vps-4     10094933       5269980           -47.80%
2016-12-17 23:46:58 -08:00
..
consistency.go in memory meta, single node configs, etc. 2016-03-14 16:55:54 +00:00
inline_fnv.go Implement and use zero-alloc FNV64a. 2016-09-26 11:43:27 -07:00
inline_fnv_test.go Implement and use zero-alloc FNV64a. 2016-09-26 11:43:27 -07:00
inline_strconv_parse.go models: Add FieldIterator type 2016-10-03 16:30:21 -06:00
inline_strconv_parse_test.go models: Add FieldIterator type 2016-10-03 16:30:21 -06:00
points.go Use strings.Replacer to escape string field 2016-12-17 23:46:58 -08:00
points_test.go Use strings.Replacer to escape string field 2016-12-17 23:46:58 -08:00
rows.go Introduce syntax for marking a partial response with chunking 2016-11-22 11:16:22 -06:00
statistic.go Ensure we don't mutate provided statistics tags 2016-08-24 11:40:13 +01:00
statistic_test.go Ensure we don't mutate provided statistics tags 2016-08-24 11:40:13 +01:00
time.go Support negative timestamps in the query engine 2016-08-25 12:52:41 -05:00