anand76
959f86e5f8
Use placement new and delete in autovector ( #5080 )
...
Summary:
The stack buffer in rocksdb::autovector is currently defined as an array of elements of the template type. This results in unnecessary construction of those objects, which can be a significant overhead in some cases. This PR changes the type of the stack buf to char* and uses placement new to construct new objects when they are inserted into the autovector.
Pull Request resolved: https://github.com/facebook/rocksdb/pull/5080
Differential Revision: D14533221
Pulled By: anand1976
fbshipit-source-id: 9378985c7d03f4e1a28951bdd2403c72f10f23d7
2019-03-20 10:42:04 -07:00
..
2018-07-11 12:28:13 -07:00
2017-07-15 16:11:23 -07:00
2017-10-17 11:13:19 -07:00
2018-04-12 17:59:16 -07:00
2017-10-17 11:13:19 -07:00
2019-02-14 14:41:36 -08:00
2017-07-15 16:11:23 -07:00
2018-02-23 13:57:26 -08:00
2018-04-15 17:26:26 -07:00
2019-03-20 10:42:04 -07:00
2019-02-14 14:41:36 -08:00
2019-02-14 14:41:36 -08:00
2016-10-25 11:31:39 -07:00
2017-07-15 16:11:23 -07:00
2017-07-31 12:12:03 -07:00
2018-09-05 18:13:31 -07:00
2018-07-16 23:43:41 -07:00
2017-10-19 10:57:12 -07:00
2018-08-23 10:12:58 -07:00
2019-01-29 17:24:00 -08:00
2019-02-14 14:41:36 -08:00
2018-06-05 12:58:02 -07:00
2018-06-05 12:58:02 -07:00
2019-03-18 12:15:34 -07:00
2018-07-18 10:43:54 -07:00
2017-11-03 14:42:08 -07:00
2018-12-26 13:59:35 -08:00
2018-12-13 13:18:28 -08:00
2017-07-15 16:11:23 -07:00
2017-08-31 14:16:30 -07:00
2018-09-05 18:13:31 -07:00
2017-08-31 14:16:30 -07:00
2018-09-05 18:13:31 -07:00
2018-06-15 12:42:53 -07:00
2018-07-13 10:58:06 -07:00
2017-08-31 14:16:30 -07:00
2019-02-14 14:41:36 -08:00
2019-01-29 15:50:03 -08:00
2019-01-29 15:50:03 -08:00
2018-04-18 16:32:35 -07:00
2018-08-20 17:43:41 -07:00
2019-01-24 10:34:30 -08:00
2019-01-24 10:34:30 -08:00
2019-02-14 14:41:36 -08:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2019-02-12 19:16:17 -08:00
2019-02-12 19:16:17 -08:00
2019-02-14 14:41:36 -08:00
2019-02-14 14:41:36 -08:00
2019-01-29 17:24:00 -08:00
2019-01-29 15:50:03 -08:00
2019-01-29 15:50:03 -08:00
2019-02-14 14:41:36 -08:00
2018-09-14 13:29:56 -07:00
2018-08-31 12:12:49 -07:00
2017-07-15 16:11:23 -07:00
2017-12-01 10:42:05 -08:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2018-07-13 10:58:06 -07:00
2017-07-15 16:11:23 -07:00
2017-12-01 10:42:05 -08:00
2018-12-17 13:20:51 -08:00
2019-01-03 16:30:12 -08:00
2019-01-03 16:30:12 -08:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2018-11-09 11:19:58 -08:00
2019-02-19 16:56:49 -08:00
2018-10-26 14:30:30 -07:00
2017-07-15 16:11:23 -07:00
2018-10-21 20:17:18 -07:00
2018-07-13 10:58:06 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2018-09-05 18:13:31 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2018-04-12 17:59:16 -07:00
2017-10-04 19:15:01 -07:00
2017-10-04 19:15:01 -07:00
2018-09-27 15:28:00 -07:00
2019-02-20 15:52:54 -08:00
2018-03-05 23:57:12 -08:00
2019-02-14 14:41:36 -08:00
2019-02-14 14:41:36 -08:00
2019-01-29 15:50:03 -08:00
2019-01-29 15:50:03 -08:00
2018-07-23 15:44:16 -07:00
2017-07-15 16:11:23 -07:00
2019-03-01 10:42:09 -08:00
2019-03-12 13:49:52 -07:00
2019-03-12 13:49:52 -07:00
2018-06-13 13:13:18 -07:00
2018-06-13 13:13:18 -07:00
2018-10-19 11:53:00 -07:00
2018-06-04 15:58:46 -07:00
2018-07-13 17:27:39 -07:00
2018-07-13 17:27:39 -07:00
2019-02-19 12:15:39 -08:00
2018-11-13 11:17:25 -08:00
2018-03-07 12:42:12 -08:00
2018-03-05 13:13:41 -08:00
2018-10-09 16:58:25 -07:00
2018-06-04 12:12:48 -07:00
2018-10-05 15:41:17 -07:00
2019-03-19 17:28:19 -07:00
2018-04-24 08:41:51 -07:00
2017-07-15 16:11:23 -07:00
2019-02-21 17:26:01 -08:00
2019-03-19 14:36:51 -07:00
2019-03-19 14:36:51 -07:00
2019-02-12 13:59:44 -08:00
2019-02-11 16:02:37 -08:00
2018-07-13 10:58:06 -07:00
2018-10-24 12:31:12 -07:00
2018-11-01 15:44:06 -07:00
2018-11-06 17:18:28 -08:00