First time loading is very slow

130 views
Skip to first unread message

Maxim Bagrov

unread,
Jan 25, 2012, 6:44:09 AM1/25/12
to Business Logic Toolkit for .NET
Hi, i am new to this product. I have wcf service(iis 6.0) based on
blt. First time loading is very slow. Is there any solution this
problem?

Maxim Bagrov

unread,
Jan 25, 2012, 8:49:43 AM1/25/12
to Business Logic Toolkit for .NET
This is my testing result.

There are 2 wcf services with the same methods:
1. Entity Framework 4.0
2. BLToolkit 4.1 (client profile)

After restrart ISS first loading times:
1. EF = 1.95 s;
2. BLT = 4.57 s.

Second call(without IIS restarting):
1. EF = 0.85 s;
2. BLT = 0.45 s.

Method returns 6092 objects.

pbz

unread,
Jan 27, 2012, 12:48:37 AM1/27/12
to Business Logic Toolkit for .NET

Maxim Bagrov

unread,
Jan 29, 2012, 11:23:11 PM1/29/12
to Business Logic Toolkit for .NET
No, result is the same (like .CP.4 project).

pbz

unread,
Jan 30, 2012, 8:38:15 PM1/30/12
to Business Logic Toolkit for .NET
> No, result is the same (like .CP.4 project).

I would try the following:

* Make sure you're only referencing BLToolkit.Data.4.dll (and not
other BLT assembly)
* Make sure you're referencing the "release" assembly (not debug)
* Try to NGEN BLToolkit.Data.4.dll on the server
* Download Resharper and run a "optimize assemblies" on your
references (if you've never done this it can remove quite a few
assemblies that are not needed)
* Configure your application pool (IIS) to not shut down / recycled.
This way the pool is not shut down and you won't have the warm up.
This would work for sure, but may not be possible in a shared
environment.

If none of these make a difference my guess would be that further
optimization would require the attention of somebody who knows the
internals of BLT.

Good luck.
Reply all
Reply to author
Forward
0 new messages