Hi all,

I finally figured out the problem (weird tough).

It happens to be that I was using also (from the calling top-level 
program)

the following call:

load_assembly "Microsoft.Office.Interop.Excel"
include Microsoft::Office::Interop::Excel

I don't have the reason why this happened, but just by moving those 
calls to a
place after the
-----------------------
require 'db_lib.rb'
-----------------------
that called the (previously) slow "connect" call,
the time went from 14 seconds to 1 second (or less)

My guess about the problem may be that by including the
Microsoft::Office::Interop::Excel
the ironruby adds a huge quantity of objects to inspect
for a "method_missing" that works in the active_record gem,
specially in the establish_connection method.

Could my guess be correct?

Regards to all!!!

and keep working with IronRuby, IT ROCKS!!!

Eduardo Blumenfeld
-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core

Reply via email to