aarzilli
c66c6408a5
proc: Caching type offsets
Caches the mapping of type names to offset in debug_info to speed up
variable evaluation.
BEFORE:
BenchmarkArray-4 100 13'238'441 ns/op 0.62 MB/s
BenchmarkArrayPointer-4 200 10'044'093 ns/op 0.87 MB/s
BenchmarkMap-4 1000 1'332'530 ns/op 0.77 MB/s
BenchmarkGoroutinesInfo-4 10 114'677'462 ns/op
BenchmarkLocalVariables-4 2000 1'223'975 ns/op
AFTER:
BenchmarkArray-4 200 9'925'686 ns/op 0.83 MB/s
BenchmarkArrayPointer-4 100 11'143'930 ns/op 0.78 MB/s
BenchmarkMap-4 2000 1'302'520 ns/op 0.79 MB/s
BenchmarkGoroutinesInfo-4 30 35'079'549 ns/op
BenchmarkLocalVariables-4 1000 1'137'299 ns/op
Note in particular the speedup of BenchmarkGoroutinesInfo, since
proc.(*Variable).parseG is a function we call a lot.
2016-03-05 13:04:11 +01:00
..
2016-02-05 14:45:27 -08:00
2016-01-24 17:30:23 +01:00
2016-02-16 15:59:37 -08:00
2016-02-18 09:15:37 -08:00
2016-02-18 09:11:34 -08:00
2015-10-27 19:38:57 -07:00
2016-01-24 15:41:41 -08:00
2015-06-12 14:49:23 -05:00
2015-06-12 14:49:23 -05:00
2016-01-09 08:44:35 +01:00
2015-07-07 08:42:34 -05:00
2016-02-28 16:44:22 -08:00
2015-06-12 14:49:23 -05:00
2015-06-12 14:49:23 -05:00
2015-06-12 14:49:23 -05:00
2016-01-27 13:25:49 +01:00
2016-01-09 08:44:45 +01:00
2016-01-24 15:48:36 -08:00
2016-01-09 08:44:45 +01:00
2016-02-24 17:49:30 -08:00
2016-03-05 13:04:11 +01:00
2016-02-28 16:44:22 -08:00
2016-02-19 15:55:20 +11:00
2016-03-05 13:04:11 +01:00
2016-01-20 19:06:31 -08:00
2016-01-20 19:06:31 -08:00
2016-01-20 19:06:31 -08:00
2016-02-11 16:59:07 -08:00
2016-02-11 16:59:07 -08:00
2016-02-19 15:55:20 +11:00
2016-02-11 16:59:07 -08:00
2016-02-02 12:26:29 +01:00
2016-02-19 15:55:20 +11:00
2016-02-19 15:55:20 +11:00
2016-01-09 08:44:43 +01:00
2016-02-27 15:15:51 -08:00
2016-01-09 08:44:43 +01:00
2016-02-27 15:15:51 -08:00
2016-02-27 15:15:51 -08:00
2016-02-27 15:15:51 -08:00
2016-03-05 13:04:11 +01:00
2016-02-27 15:26:24 -08:00
2016-02-19 15:55:20 +11:00