#136 ✓resolved
bahuvrihi

Optimization of App#initialize

Reported by bahuvrihi | January 2nd, 2009 @ 11:07 AM

This is potentially a slow initialization since a config like {:root, :relative_paths, :absolute_paths} will reassign paths 3 times (see Root#assign_paths)


    # Creates a new App with the given configuration.  
    def initialize(config={}, logger=DEFAULT_LOGGER)
      super()
      
      @state = State::READY
      @queue = Support::ExecutableQueue.new
      @aggregator = Support::Aggregator.new
      @dependencies = Support::Dependencies.new
      
      reconfigure(config)
      self.logger = logger
    end

The assigned configurations should be removed from config and reassigned as one... the optimization is probably best done in Root itself, within reconfigure.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

A framework for making configurable, file-based tasks and workflows.

People watching this ticket

Pages