freeride-devel
[Top][All Lists]
Advanced

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

[FR-devel] plugin.xml


From: NISHIO Mizuho
Subject: [FR-devel] plugin.xml
Date: Sun, 14 Jul 2002 09:57:49 +0900
User-agent: Wanderlust/2.2.15 (More Than Words) EMIKO/1.13.9 (Euglena tripteris) FLIM/1.13.2 (Kasanui) APEL/10.2 Emacs/20.7 (i386-debian-linux-gnu) MULE/4.1 (AOI)

Is it possible to cache the result of parsing plugin.xml?
It seems that it takes considerable time to parse plugin.xml . 

This is the result of profile.rb.
Before profiling FreeRIDE, I insert "exit" into freebase/core.rb like this.  

      @bus["/system/state/all_plugins_loaded"].data = false;
      load_plugins
      @bus["/system/state/all_plugins_loaded"].data = true;

      exit

      if (Config::CONFIG['os_host'] == 'mswin32')



Result 
ruby -rprofile -I. -Iso -Iredist -e "require 'freeride/freeride'; 
FreeBASE::Core.startup('./config/properties.xml','./config/default.xml')"

  %   cumulative   self              self     total
 time   seconds   seconds    calls  ms/call  ms/call  name
 17.54     7.20      7.20     4363     1.65    18.84  FreeBASE::DataBus::Slot#[]
  8.04    10.50      3.30      143    23.08    54.06  Kernel.require
  5.82    12.89      2.39     4206     0.57    30.14  
FreeBASE::DataBus::Slot#notify
  4.07    14.56      1.67      686     2.43     3.76  
REXML::Node.read_with_substitution
  3.48    15.99      1.43      137    10.44   115.77  
REXML::Element#parse_children
  2.85    17.16      1.17      967     1.21    31.07  
FreeBASE::Plugin#databus_notify
  2.51    18.19      1.03    15245     0.07     0.07  String#==
  2.44    19.19      1.00    13838     0.07     0.07  Kernel.==
  2.29    20.13      0.94    11038     0.09     0.09  Kernel.kind_of?
  2.05    20.97      0.84     9225     0.09     0.09  Array#[]
  2.00    21.79      0.82      904     0.91    65.60  Array#each
  1.63    22.46      0.67     4366     0.15     0.26  
FreeBASE::DataBus::Slot#root?
  1.56    23.10      0.64     1279     0.50    75.13  Hash#each_value
  1.15    23.57      0.47      191     2.46     3.66  Array#delete_if
  1.07    24.01      0.44     4395     0.10     0.10  String#gsub!
  1.05    24.44      0.43     4501     0.10     0.10  Fixnum#>
  1.02    24.86      0.42      382     1.10     3.43  REXML::XPath#filter
  0.95    25.25      0.39     2004     0.19     0.22  
FreeBASE::DataBus::Slot#check_type
  0.95    25.64      0.39      333     1.17    33.54  
FreeBASE::DataBus::Slot#initialize
  0.95    26.03      0.39      363     1.07     5.84  REXML::Text#initialize
  0.95    26.42      0.39     1329     0.29     0.36  REXML::Source#match
  0.93    26.80      0.38      154     2.47     3.51  
REXML::Node.write_with_substitution
  0.88    27.16      0.36      323     1.11     5.36  
REXML::Attribute#initialize
  0.85    27.51      0.35     1947     0.18    56.05  Class#new
  0.85    27.86      0.35      947     0.37    60.62  Proc#call
  0.85    28.21      0.35     6972     0.05     0.05  Array#first
  0.80    28.54      0.33     4206     0.08     0.08  Hash#size
  0.80    28.87      0.33      886     0.37     0.68  
FreeBASE::DataBus::Slot#queue
  0.76    29.18      0.31      323     0.96     3.44  REXML::Attributes#[]=
  0.73    29.48      0.30     3412     0.09     0.09  String#+
  0.73    29.78      0.30      610     0.49     0.59  REXML::Parent#add
  0.73    30.08      0.30     1248     0.24     0.59  REXML::IOSource#match
  0.68    30.36      0.28      118     2.37     2.63  Mutex#lock
  0.68    30.64      0.28      602     0.47     0.76  
REXML::Attributes#get_attribute
  0.66    30.91      0.27      230     1.17   302.22  
FreeBASE::DataBus::Slot#data=
  0.61    31.16      0.25     3750     0.07     0.07  String#===
  0.61    31.41      0.25     3722     0.07     0.07  Regexp#===
  0.58    31.65      0.24     1515     0.16     0.16  String#split
  0.58    31.89      0.24      268     0.90    73.43  REXML::Element#initialize
  0.56    32.12      0.23      191     1.20     8.43  REXML::XPath#match
  0.54    32.34      0.22      118     1.86     4.49  
Log4r::BasicFormatter#format


  %   cumulative   self              self     total
 time   seconds   seconds    calls  ms/call  ms/call  name
 16.32     6.60      6.60     4363     1.51    19.16  FreeBASE::DataBus::Slot#[]
  7.47     9.62      3.02      143    21.12    47.97  Kernel.require
  5.10    11.68      2.06     4206     0.49    30.49  
FreeBASE::DataBus::Slot#notify
  4.13    13.35      1.67      686     2.43     3.86  
REXML::Node.read_with_substitution
  3.34    14.70      1.35      137     9.85   115.33  
REXML::Element#parse_children
  3.07    15.94      1.24      967     1.28    31.07  
FreeBASE::Plugin#databus_notify
  2.87    17.10      1.16    15253     0.08     0.08  String#==
  2.60    18.15      1.05    13838     0.08     0.08  Kernel.==
  2.50    19.16      1.01     4366     0.23     0.30  
FreeBASE::DataBus::Slot#root?
  2.30    20.09      0.93    11038     0.08     0.08  Kernel.kind_of?
  2.05    20.92      0.83     1279     0.65    76.00  Hash#each_value
  1.86    21.67      0.75     6972     0.11     0.11  Array#first
  1.81    22.40      0.73     9233     0.08     0.08  Array#[]
  1.78    23.12      0.72     4933     0.15     0.15  Array#shift
  1.61    23.77      0.65     2004     0.32     0.40  
FreeBASE::DataBus::Slot#check_type
  1.56    24.40      0.63      904     0.70    64.75  Array#each
  1.48    25.00      0.60      382     1.57     3.72  REXML::XPath#filter
  1.46    25.59      0.59      947     0.62    61.63  Proc#call
  1.46    26.18      0.59     4501     0.13     0.13  Fixnum#>
  1.16    26.65      0.47     4395     0.11     0.11  String#gsub!
  1.09    27.09      0.44      886     0.50     1.07  
FreeBASE::DataBus::Slot#queue
  1.06    27.52      0.43     1329     0.32     0.44  REXML::Source#match
  0.99    27.92      0.40      363     1.10     6.25  REXML::Text#initialize
  0.99    28.32      0.40     1947     0.21    55.64  Class#new
  0.87    28.67      0.35      191     1.83     3.09  Array#delete_if
  0.84    29.01      0.34      602     0.56     0.73  
REXML::Attributes#get_attribute
  0.82    29.34      0.33      323     1.02     3.56  REXML::Attributes#[]=
  0.79    29.66      0.32     3722     0.09     0.09  Regexp#===
  0.77    29.97      0.31      333     0.93    33.09  
FreeBASE::DataBus::Slot#initialize
  0.74    30.27      0.30      154     1.95     3.31  
REXML::Node.write_with_substitution
  0.72    30.56      0.29      323     0.90     5.29  
REXML::Attribute#initialize
  0.69    30.84      0.28      118     2.37     2.46  Mutex#unlock
  0.67    31.11      0.27     1248     0.22     0.66  REXML::IOSource#match
  0.62    31.36      0.25       98     2.55    14.59  
FreeBASE::DataBus::ProcWrapper#call
  0.57    31.59      0.23      957     0.24     0.32  IO#<<
  0.54    31.81      0.22     3412     0.06     0.06  String#+
  0.54    32.03      0.22      610     0.36     0.49  REXML::Parent#add
  0.54    32.25      0.22       49     4.49    16.33  
Scintilla::Style#initialize


******************************
NISHIO Mizuho 
e-mail address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]