Lőrinc
323ce30308
Moved the repeated -printpriority fetching out of AddToBlock
...
AddToBlock was called repeatedly from `addPackageTxs` where the constant value of `printpriority` is recalculated every time.
Since its behavior was changed in 400b151 , I've named the variable accordingly.
This showed up during profiling of AssembleBlock, fetching it once in the constructor results in a measurable speed increase for many iterations.
> ./src/bench/bench_bitcoin --filter='AssembleBlock' --min-time=1000
before:
| ns/op | op/s | err% | total | benchmark
|--------------------:|--------------------:|--------:|----------:|:----------
| 155,558.97 | 6,428.43 | 0.1% | 1.10 | `AssembleBlock`
after:
| ns/op | op/s | err% | total | benchmark
|--------------------:|--------------------:|--------:|----------:|:----------
| 148,083.68 | 6,752.94 | 0.1% | 1.10 | `AssembleBlock`
Co-authored-by: furszy <mfurszy@protonmail.com >
2024-06-30 23:00:13 +02:00
..
2024-06-12 17:12:54 -04:00
2024-06-12 17:12:54 -04:00
2024-06-07 13:55:23 -04:00
2024-05-16 17:16:08 +02:00
2024-06-13 11:20:49 +01:00
2024-06-18 18:47:51 +02:00
2024-06-27 08:58:25 +02:00
2024-06-26 11:43:58 +01:00
2024-06-13 13:17:57 +01:00
2024-06-12 14:38:39 +01:00
2024-06-30 23:00:13 +02:00
2024-06-17 17:22:43 -04:00
2024-06-12 17:12:54 -04:00
2024-06-12 17:12:54 -04:00
2024-06-27 18:16:27 -04:00
2024-06-12 17:12:54 -04:00
2024-06-25 15:01:00 +01:00
2024-06-24 19:29:48 -04:00
2024-04-16 16:35:12 +02:00
2024-06-27 17:35:08 -04:00
2024-06-27 13:59:46 -04:00
2024-05-20 16:48:19 +00:00
2024-05-30 11:33:59 +01:00
2024-05-01 08:33:04 +02:00
2024-04-10 17:01:27 +02:00
2024-05-15 15:09:56 -04:00
2024-05-30 08:35:18 -04:00
2024-05-16 10:16:08 -05:00
2024-06-05 13:18:13 +02:00
2024-05-13 12:07:47 +02:00
2024-06-13 11:20:48 +01:00
2024-06-12 17:12:54 -04:00
2024-06-12 17:12:54 -04:00
2024-05-01 08:33:04 +02:00
2024-06-12 17:12:54 -04:00
2024-06-13 11:20:49 +01:00
2024-04-06 19:17:20 +01:00
2024-04-06 19:17:20 +01:00
2024-05-16 10:16:08 -05:00
2024-03-18 11:28:40 -05:00
2024-05-16 10:16:08 -05:00
2024-05-16 10:16:08 -05:00
2024-05-01 08:33:04 +02:00
2024-06-10 13:46:56 +02:00
2024-06-07 13:55:23 -04:00
2024-05-16 10:16:08 -05:00
2024-06-07 13:55:23 -04:00
2024-03-26 16:51:46 +00:00
2024-05-16 15:03:13 -04:00
2024-03-27 14:16:37 +00:00
2024-06-27 17:35:08 -04:00
2024-06-26 06:47:30 +03:00
2024-06-26 06:47:30 +03:00
2024-06-26 15:28:26 -04:00
2024-06-12 16:19:50 -03:00
2024-06-30 23:00:13 +02:00
2024-06-03 16:59:43 +02:00
2024-06-03 16:59:43 +02:00
2024-05-16 10:16:08 -05:00
2024-05-16 10:16:08 -05:00
2024-06-24 19:29:48 -04:00
2024-03-20 16:30:04 -04:00
2024-04-12 14:28:34 +02:00
2024-05-06 11:29:14 +01:00
2024-06-13 11:20:48 +01:00
2024-06-18 12:24:48 +00:00
2024-04-07 14:04:45 +01:00
2024-05-16 10:16:08 -05:00
2024-06-20 18:45:32 +00:00
2024-06-20 13:28:38 -04:00
2024-05-20 16:48:19 +00:00
2024-06-14 14:23:50 +02:00
2024-05-07 10:28:58 +08:00
2024-05-16 10:16:08 -05:00
2024-05-16 10:16:08 -05:00
2024-06-21 09:43:46 +01:00
2024-06-14 14:23:50 +02:00
2024-03-21 16:41:16 +01:00
2024-05-03 14:20:44 -03:00
2024-05-03 14:20:44 -03:00
2024-05-21 13:59:33 -04:00
2024-05-16 10:16:08 -05:00
2024-06-12 17:12:54 -04:00
2024-05-14 10:24:31 +02:00
2024-05-14 10:24:31 +02:00
2024-05-01 08:33:04 +02:00
2024-06-21 09:42:32 +01:00
2024-06-26 06:47:30 +03:00
2024-05-15 15:09:56 -04:00
2024-06-07 13:55:23 -04:00
2024-04-01 14:37:24 -04:00
2024-04-01 14:37:24 -04:00
2024-05-16 18:16:46 +02:00
2024-05-16 10:16:08 -05:00
2024-05-17 23:37:25 +02:00
2024-05-17 23:37:25 +02:00
2024-05-29 09:02:07 -07:00
2024-05-29 09:02:07 -07:00
2024-06-20 18:45:32 +00:00
2024-06-11 16:41:44 -04:00