Author: tim.bunce
Date: Mon Dec  1 03:46:58 2008
New Revision: 638

Modified:
    trunk/HACKING

Log:
Add assorted thoughts to HACKING


Modified: trunk/HACKING
==============================================================================
--- trunk/HACKING       (original)
+++ trunk/HACKING       Mon Dec  1 03:46:58 2008
@@ -326,3 +326,17 @@
  Trace level 1 should show totals fids, subs etc.

  Index should show eval fids in some form - collapsed per location?
+
+Usage of SubInfo merge_in needs to also merge sub_callers info.
+Perhaps restructure sub_callers to hang off sub_subinfo.
+That also avoids the need to duplicate subname.
+
+Check forking when stmts=0.
+
+Sub profiler should avoid sv_setpvf(subname_sv, "%s::%s", stash_name,  
GvNAME(gv));
+because it's expensive (Perl_sv_setpvf_nocontext accounts for 29% of  
pp_entersub_profiler).
+Use a two level hash: HvNAME(GvSTASH(gv)) then GvNAME(gv).
+Should then also be able to avoid newSV/free for subname_sv (which  
accounts for 50% of its time).
+
+Class::MOP should update %DB::sub (if $^P set) when it creates methods.
+Sub::Name should do same (extracting the file and line from the  
ANON[...:...])

--~--~---------~--~----~------------~-------~--~----~
You've received this message because you are subscribed to
the Devel::NYTProf Development User group.

Group hosted at:  http://groups.google.com/group/develnytprof-dev
Project hosted at:  http://perl-devel-nytprof.googlecode.com
CPAN distribution:  http://search.cpan.org/dist/Devel-NYTProf

To post, email:  [email protected]
To unsubscribe, email:  [EMAIL PROTECTED]
-~----------~----~----~----~------~----~------~--~---

Reply via email to