Re: optimizing NOP emissions (Re: [Nautilus-list] nautilus & signals)



On 12 Apr 2002, Michael Meeks wrote:

> 	Indeed, re-profiling shows that the signal / locking code is no longer
> near the top of the profile for directory traversal; instead:
> 
> 170 samples
> Max Percent: 7%
> draw_with_pixmaps                                          : 7.6% ( 13 )
> __pthread_mutex_unlock                                     : 6.5% ( 11 )
> free_check                                                 : 5.3% ( 9 )
> Bonobo_ActivationProperty_copy                             : 2.9% ( 5 )
> g_object_ref                                               : 2.4% ( 4 )
> byte_re_search_2                                           : 2.4% ( 4 )
> malloc_check                                               : 2.4% ( 4 )
> g_hash_table_lookup                                        : 1.8% ( 3 )
> gtk_default_render_icon                                    : 1.8% ( 3 )
> g_param_spec_pool_lookup                                   : 1.8% ( 3 )
> g_object_last_unref                                        : 1.2% ( 2 )
> gnome_vfs_mime_try_one_magic_pattern                       : 1.2% ( 2 )
> g_signal_emit_valist                                       : 1.2% ( 2 )
> signal_emit_unlocked_R                                     : 1.2% ( 2 )
> __libc_realloc                                             : 1.2% ( 2 )
> __libc_free                                                : 1.2% ( 2 )
> __pthread_mutex_lock                                       : 1.2% ( 2 )
> 
> 	So I think it's not such a problem now.

Yes. This looks much more sane.

* draw_with_pixmaps is gtk+ AA rendering, at last we have a top-of-profile 
  function that actually does a lot of work! Yay! :)
* byte_re_search_2 is our stupid gnome-vfs mime suffix sniffer that does a 
  regexp match per possible suffix instead of combining the suffixes into 
  one regexp.

What is Bonobo_ActivationProperty_copy?

Did you do this run with _MALLOC_CHECK set? I don't know what free_check 
and malloc_check is?

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
                   alexl redhat com    alla lysator liu se 
He's a suicidal pirate shaman on a search for his missing sister. She's a 
tortured insomniac college professor married to the Mob. They fight crime! 





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]