Ok,let's test:
DeathMsg:
Code:
date: Thu Apr 17 03:51:47 2014 map: fy_snow
type | name | calls | time / min / max
-------------------------------------------------------------------
n | register_event | 1 | 0.000003 / 0.000003 / 0.000003
n | read_data | 3 | 0.000005 / 0.000002 / 0.000002
n | client_print | 2 | 0.000006 / 0.000002 / 0.000004
p | death_msg_function | 1 | 0.000011 / 0.000011 / 0.000011
p | plugin_init | 1 | 0.000003 / 0.000003 / 0.000003
0 natives, 0 public callbacks, 2 function calls were not executed.
Ham:
Code:
date: Thu Apr 17 03:53:58 2014 map: fy_snow
type | name | calls | time / min / max
-------------------------------------------------------------------
n | register_plugin | 1 | 0.000002 / 0.000002 / 0.000002
n | RegisterHam | 1 | 0.000041 / 0.000041 / 0.000041
n | get_user_name | 2 | 0.000004 / 0.000002 / 0.000002
n | client_print | 1 | 0.000004 / 0.000004 / 0.000004
p | Fwd_Ham_Killed_Post | 1 | 0.000008 / 0.000008 / 0.000008
p | plugin_init | 1 | 0.000005 / 0.000005 / 0.000005
6 natives, 1 public callbacks, 3 function calls were not executed.
So:
register_event | 1 | 0.000003 / 0.000003 / 0.000003
death_msg_function | 1 | 0.000011 / 0.000011 / 0.000011
RegisterHam | 1 | 0.000041 / 0.000041 / 0.000041
Fwd_Ham_Killed_Post | 1 | 0.000008 / 0.000008 / 0.000008
Both are called just 1 time. Ham Killed is faster( 0.000008 )..
So, Ham Killed is better than DeathMsg( in terms of duration of execution ).