1. 17 Dec, 2012 1 commit
    • Rusty Russell's avatar
      tal: append the length property to the initial allocation. · 4814c4c7
      Rusty Russell authored
      Since we never post-add a length property, we can save some cycles by
      allocating it together with the object itself:
      
      Before:
      	$ ./samba-allocs talloc.dump --tal
      	Tal time:                6058997-6215211(6102645)ns
      	Tal_free time:           4791112-4968964(4824814)ns
      	Single tal_free time:    3173647-3331584(3200183)ns
      	$ ./samba-allocs talloc.dump --tal-size
      	Virtual size = 9809920, RSS = 3952640
      
      After:
      	$ ./samba-allocs talloc.dump --tal
      	Tal time:                5911994-6043808(5956914)ns
      	Tal_free time:           4676026-4834598(4719908)ns
      	Single tal_free time:    2888195-3067365(2922298)ns
      	$ ./samba-allocs talloc.dump --tal-size
      	Virtual size = 9809920, RSS = 3948544
      Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
      4814c4c7
  2. 14 Dec, 2012 3 commits
  3. 07 Dec, 2012 1 commit
  4. 03 Dec, 2012 27 commits
  5. 22 Nov, 2012 8 commits