Evans Mungai
86279b4ec4
chore(redactors): memory consumption improvements ( #1332 )
...
* Document additional go tool profiling flags
* Add a regex cache to avoid compiling regular expressions all the time
* Reduce max buffer capacity
* Prefer bytes to strings
Strings are immutable and hence we need to create a new one
all the time when operation on them
* Some more changes
* More bytes
* Use writer.Write instead of fmt.FPrintf
* Clear regex cache when resetting redactors
* Logs errors when redactors error since they get swallowed
* Add an improvement comment
* Limit the number of goroutines spawned when redacting
* Minor improvement
* Write byte slices one at a time instead of concatenating them first
* Add a test for writeBytes
* Additional tests
2023-09-15 13:09:21 -04:00
..
2023-03-08 11:33:27 -04:00
2023-06-01 09:46:34 +01:00
2023-07-17 17:05:05 +12:00
2019-07-11 14:06:42 +00:00
2022-10-14 12:29:59 -04:00
2023-08-14 18:14:38 +12:00
2023-08-14 18:14:38 +12:00
2022-11-01 12:16:01 +13:00
2023-08-08 14:17:15 -04:00
2023-08-09 22:32:14 +12:00
2023-02-01 14:14:43 -05:00
2023-08-28 11:51:57 +12:00
2023-02-10 17:27:50 +00:00
2023-06-13 13:12:17 -04:00
2023-08-09 22:32:14 +12:00
2023-08-09 22:32:14 +12:00
2023-02-10 17:27:50 +00:00
2022-10-14 12:29:59 -04:00
2022-05-04 10:42:37 -07:00
2022-10-14 12:29:59 -04:00
2023-08-28 11:51:57 +12:00
2023-08-28 11:51:57 +12:00
2023-03-08 06:29:16 -08:00
2023-04-18 13:25:45 +12:00
2022-05-12 16:46:24 +00:00
2023-07-17 17:05:05 +12:00
2023-07-17 17:05:05 +12:00
2023-07-17 17:05:05 +12:00
2023-04-05 15:43:38 +01:00
2023-04-05 15:43:38 +01:00
2022-12-24 13:42:13 +13:00
2022-12-24 13:42:13 +13:00
2022-12-24 13:42:13 +13:00
2022-12-24 13:42:13 +13:00
2022-05-12 20:09:03 +00:00
2022-05-12 16:46:24 +00:00
2021-02-17 23:20:38 +00:00
2022-05-12 20:09:03 +00:00
2022-05-11 22:50:03 +00:00
2023-09-01 19:08:22 +05:30
2022-05-12 16:46:24 +00:00
2022-05-12 16:46:24 +00:00
2022-05-12 19:49:04 +00:00
2022-09-08 15:10:53 +12:00
2022-12-24 13:42:13 +13:00
2022-12-24 13:42:13 +13:00
2021-07-14 14:30:47 -06:00
2021-07-14 14:30:47 -06:00
2022-12-24 13:42:13 +13:00
2022-12-24 13:42:13 +13:00
2022-06-29 12:14:56 -04:00
2022-05-12 16:46:24 +00:00
2023-03-10 12:52:21 +10:00
2023-03-10 12:52:21 +10:00
2023-03-08 06:29:16 -08:00
2022-05-12 16:46:24 +00:00
2022-05-12 16:46:24 +00:00
2022-05-12 16:46:24 +00:00
2023-01-13 10:32:39 +00:00
2023-02-07 09:50:21 +00:00
2023-01-24 16:38:54 -05:00
2023-09-13 19:18:03 -04:00
2023-09-13 19:18:03 -04:00
2022-07-08 14:53:46 -07:00
2022-07-08 14:53:46 -07:00
2023-06-09 10:26:03 +01:00
2023-06-09 10:26:03 +01:00
2023-06-06 16:48:29 -04:00
2023-01-09 12:04:01 -04:00
2023-05-18 07:43:47 +01:00
2021-06-22 21:55:12 +00:00
2023-03-23 14:55:36 +00:00
2023-03-27 16:06:27 +01:00
2023-08-25 10:38:39 +01:00
2022-10-14 12:29:59 -04:00
2023-01-03 18:05:15 +00:00
2022-11-30 15:52:08 +13:00
2022-10-03 13:53:05 -04:00
2023-09-15 13:09:21 -04:00
2023-01-03 18:05:15 +00:00
2022-11-29 17:47:52 +00:00
2023-01-13 10:32:39 +00:00
2021-10-06 09:03:53 -05:00
2023-03-10 12:52:21 +10:00
2023-01-03 18:05:15 +00:00
2023-09-15 13:09:21 -04:00
2023-06-15 13:59:59 +12:00
2023-06-15 15:39:18 +12:00
2023-06-15 15:39:18 +12:00
2023-02-10 17:27:50 +00:00
2022-10-14 12:29:59 -04:00
2023-02-24 18:24:51 +00:00
2023-06-15 15:39:18 +12:00
2023-07-17 17:05:05 +12:00