Philippe Waroquiers
4256a17920
This patch adds a function that allows to directly properly size an xarray
...
when the size is known in advance.
3 places identified where this function can be used trivially.
The result is a reduction of 'realloc' operations in core
arena, and a small reduction in ttaux arena
(it is the nr of operations that decreases, the memory usage itself
stays the same (ignoring some 'rounding' effects).
E.g. for perf/bigcode 0, we change from
core 1085742/ 216745904 totalloc-blocks/bytes, 1085733 searches
ttaux 5348/ 6732560 totalloc-blocks/bytes, 5326 searches
to
core 712666/ 190998592 totalloc-blocks/bytes, 712657 searches
ttaux 5319/ 6731808 totalloc-blocks/bytes, 5296 searches
For bz2, we switch from
core 50285/ 32383664 totalloc-blocks/bytes, 50256 searches
ttaux 670/ 245160 totalloc-blocks/bytes, 669 searches
to
core 32564/ 29971984 totalloc-blocks/bytes, 32535 searches
ttaux 605/ 243280 totalloc-blocks/bytes, 604 searches
Performance wise, on amd64, this improves memcheck performance
on perf tests by 0.0, 0.1 or 0.2 seconds depending on the test.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15173
2015-05-01 16:46:38 +00:00
..
2013-07-03 10:00:19 +00:00
2015-05-01 06:29:51 +00:00
2015-04-30 20:44:17 +00:00
2015-04-30 20:44:17 +00:00
2015-03-21 10:58:37 +00:00
2015-04-10 12:30:09 +00:00
2015-04-30 20:44:17 +00:00
2015-04-30 20:44:17 +00:00
2013-10-18 14:27:36 +00:00
2014-11-04 17:44:21 +00:00
2015-04-30 20:44:17 +00:00
2015-04-30 20:44:17 +00:00
2015-04-29 20:48:48 +00:00
2015-04-08 19:01:15 +00:00
2014-11-06 20:23:22 +00:00
2015-03-07 14:57:39 +00:00
2015-04-27 14:04:52 +00:00
2012-07-20 16:46:54 +00:00
2013-03-28 15:53:21 +00:00
2015-03-21 20:55:36 +00:00
2015-02-20 14:00:23 +00:00
2015-04-10 12:30:09 +00:00
2014-08-29 22:53:19 +00:00
2014-09-27 18:01:19 +00:00
2015-03-10 16:13:59 +00:00
2013-10-18 14:27:36 +00:00
2015-04-30 20:44:17 +00:00
2015-04-15 02:33:09 +00:00
2015-04-25 14:53:35 +00:00
2015-04-30 20:44:17 +00:00
2015-04-30 20:44:17 +00:00
2015-04-25 14:00:24 +00:00
2015-04-30 20:44:17 +00:00
2015-03-10 16:13:59 +00:00
2015-04-10 12:30:09 +00:00
2015-04-21 20:56:49 +00:00
2015-04-10 12:30:09 +00:00
2014-08-07 23:35:54 +00:00
2014-10-23 17:47:15 +00:00
2015-04-30 20:44:17 +00:00
2015-04-30 20:44:17 +00:00
2015-04-30 20:44:17 +00:00
2015-03-12 20:43:46 +00:00
2014-10-18 16:17:13 +00:00
2014-09-15 18:50:17 +00:00
2014-10-22 22:25:30 +00:00
2015-04-10 12:30:09 +00:00
2015-01-04 17:20:45 +00:00
2014-12-13 18:35:00 +00:00
2015-04-30 20:44:17 +00:00
2015-04-11 11:42:22 +00:00
2015-03-28 12:52:23 +00:00
2015-04-30 20:44:17 +00:00
2015-04-20 21:02:18 +00:00
2015-04-30 20:44:17 +00:00
2015-01-13 17:33:59 +00:00
2015-04-10 12:30:09 +00:00
2015-04-30 20:44:17 +00:00
2015-05-01 16:46:38 +00:00
2014-08-07 23:17:29 +00:00
2014-08-12 21:11:44 +00:00
2014-10-18 16:17:13 +00:00
2015-05-01 16:46:38 +00:00
2015-04-18 10:33:54 +00:00
2014-05-14 20:39:27 +00:00
2013-10-18 14:27:36 +00:00
2015-04-22 14:16:11 +00:00
2013-10-18 14:27:36 +00:00
2015-04-10 12:30:09 +00:00
2014-08-29 22:53:19 +00:00
2013-10-18 14:27:36 +00:00
2013-10-18 14:27:36 +00:00
2013-12-16 22:52:20 +00:00
2013-10-18 14:27:36 +00:00
2013-10-18 14:27:36 +00:00
2015-04-10 12:30:09 +00:00
2013-10-18 14:27:36 +00:00
2014-06-14 16:30:09 +00:00
2014-10-25 19:20:38 +00:00
2013-10-18 14:27:36 +00:00
2014-09-18 18:35:47 +00:00
2013-10-18 14:27:36 +00:00
2013-10-18 14:27:36 +00:00
2015-02-09 21:30:58 +00:00
2014-10-06 21:04:14 +00:00
2013-10-18 14:27:36 +00:00
2015-04-09 16:23:20 +00:00
2013-10-18 14:27:36 +00:00
2014-10-22 22:25:30 +00:00
2013-10-18 14:27:36 +00:00
2014-11-14 19:25:08 +00:00
2014-11-29 14:41:32 +00:00
2014-05-03 21:22:55 +00:00
2013-10-18 14:27:36 +00:00
2014-10-23 17:47:15 +00:00
2013-10-18 14:27:36 +00:00
2015-04-10 12:30:09 +00:00
2015-04-10 12:30:09 +00:00
2015-03-15 12:24:19 +00:00
2013-10-18 14:27:36 +00:00
2013-09-15 10:42:26 +00:00
2014-03-20 23:00:09 +00:00
2014-10-22 22:25:30 +00:00
2013-10-18 14:27:36 +00:00
2013-10-18 14:27:36 +00:00
2014-08-29 22:53:19 +00:00
2013-10-18 14:27:36 +00:00
2013-10-18 14:27:36 +00:00
2015-03-03 14:56:17 +00:00
2013-10-18 14:27:36 +00:00
2014-08-29 22:53:19 +00:00
2014-10-22 22:25:30 +00:00
2015-04-10 12:30:09 +00:00
2015-03-07 05:22:12 +00:00
2015-04-18 17:41:31 +00:00
2015-01-04 17:20:45 +00:00
2015-04-10 12:30:09 +00:00
2015-01-04 17:20:45 +00:00
2015-04-10 12:30:09 +00:00
2015-03-23 21:49:32 +00:00
2014-08-09 16:55:59 +00:00
2013-10-18 14:27:36 +00:00
2013-10-18 14:27:36 +00:00
2013-10-18 14:27:36 +00:00
2013-10-18 14:27:36 +00:00
2013-10-18 14:27:36 +00:00
2014-11-04 17:44:21 +00:00
2013-12-01 14:56:28 +00:00
2015-04-10 12:30:09 +00:00
2014-12-21 17:53:42 +00:00
2014-04-15 22:35:23 +00:00