|
We tried using VMs here instead of physical boxes. For us, they are too slow and we are a relatively low volume shop. Its noon here and we've only gotten 57,000 requests so far. We are a data intensive shop though, so each request takes like 4 or 5 seconds of database activity (big data).
Have you tried monitoring your web server and sql box in task manager during the day to monitor CPU and memory? If you are maxing out memory and/or CPU, you need to beef up the hardware.
|
|
|
|
|
Loading the splash-screen takes time. You can improve performance by eliminating it. I would also recommend against loading anything before the first UI is displayed. Load the UI first, then kick off a thread to load your data. Load the data using a backgroundworker with NORMAL priority. Any "high priority" thread will slow down the execution of the other running threads - it is recommended to do everything in "normal" priority.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Hi Eddy,
Loading splash screen is must for us So I can't remove it
Here name of function is loadWithHighPriority is confusing but it is just another parallel task done with normal priority but separately thus named like this.
This data we load is then used even this.loaded to fill data in UI.
|
|
|
|
|
teek13 wrote: Loading splash screen is must for us So I can't remove it You also said it was a must to become faster
I'd recommend to not load anything until the UI is present. A lot can be deferred to a later point in the application, when it is actually used.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
If you want to see where all the time is really being taken up (and Sledge is onto something here), you should run a performance profiler to see what's taking the most time. Don't guess at the problem, get some actual metrics to identify what's going on.
|
|
|
|
|
|
I will see performance through profiler too and update the same
|
|
|
|
|
i want to make a program by which user can change any image into text.
|
|
|
|
|
OK - you have our permission. Go make your program.
Hint: Reposting a vague question isn't going to elicit offers of help.
/ravi
|
|
|
|
|
arvindnitin7 wrote: i want to make a program by which user can change any image into text Any image? Are you looking to generate ASCII art? Or are you talking about any image of text? In which case, you want to look into OCR.
|
|
|
|
|
i want to make a program y which user can change any image into text formate. plz help me as soon as possible.
|
|
|
|
|
"ASAP" doesn't work when talking to volunteers. We also do not help doing "projects", but we do answer specific questions. If you have one, feel free to ask.
What you want to do is called "OCR".
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
How to Calculate Days Between Two Dates ?
if my dates are
Date1 = 2014/01/10
Date2 = 2014/10/30
Just Like
January 20
February 28
March 33
April 31
May 30
June 31
July 30
August 31
September 28
October 31
November
December
|
|
|
|
|
Try:
DateTime Date1 = new DateTime(2014, 01, 10);
DateTime Date2 = new DateTime(2014, 10, 30);
TimeSpan diff = Date2 - Date1;
Console.WriteLine(diff.TotalDays);
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Assuming you want ... given two dates ... to generate a data structure that contains each Month from the starting date to the ending date, and, for each month, the number of days in the month:
using System.Globalization;
private DateTimeFormatInfo dtf = new DateTimeFormatInfo();
private Dictionary<string, int> getMonthDays(DateTime d1, DateTime d2)
{
int nMonths = ((d2.Year - d1.Year) * 12) + d2.Month - d1.Month - 1;
var dctMonthDays = new Dictionary<string, int>();
for (int i = 0; i <= nMonths; i++)
{
int daysInMonth = DateTime.DaysInMonth(d1.Year, d1.Month);
string monthName = dtf.GetMonthName(d1.Month);
if (i == 0)
{
dctMonthDays.Add(monthName, daysInMonth - d1.Day);
}
else if (i == nMonths)
{
dctMonthDays.Add(monthName, d2.Day);
}
else
{
dctMonthDays.Add(monthName, daysInMonth);
}
d1 = d1.AddMonths(1);
}
return dctMonthDays;
}
DateTime d1 = DateTime.Now;
DateTime d2 = d1.AddMonths(7);
var monthDayDiff = getMonthDays(d1, d2);
foreach (var kvp in monthDayDiff)
{
Console.WriteLine("Month: {0} Days: {1}", kvp.Key, kvp.Value);
}
« I am putting myself to the fullest possible use which is all, I think, that any conscious entity can ever hope to do » HAL (Heuristically programmed ALgorithmic computer) in "2001, A Space Odyssey"
|
|
|
|
|
PoolGameSingle poolgame = new PoolGameSingle();
var cue = poolgame.CueStick;
Body CueStickBody = BodyFactory.Instance.CreateRectangleBody(physicsSimulator, 15, 15,1);
CueStickBody.Position = new Vector2(902, 250);
cue = CueStickBody;
Geom CueStickGeom = GeomFactory.Instance.CreateRectangleGeom(physicsSimulator, CueStickBody, 15, 15, 20);
CueStickGeom.CollisionGroup = 1;
CueStickGeom.RestitutionCoefficient = .8f;
CueStickGeom.FrictionCoefficient = 0
|
|
|
|
|
You have already posted the same question on StackOverFlow and GameDev, but why not also post the question on the FarSeer Discussion forum: [^].
« I am putting myself to the fullest possible use which is all, I think, that any conscious entity can ever hope to do » HAL (Heuristically programmed ALgorithmic computer) in "2001, A Space Odyssey"
|
|
|
|
|
If I wanted to post the question on that page, I would have done so long ago.. But nobody is replying me.
|
|
|
|
|
Member 10948508 wrote: If I wanted to post
Member 10948508 wrote: I would have done so
Member 10948508 wrote: But nobody is replying me.
Possibly, the latter is because of the first two?
You don't generally get replies to messages you haven't posted...
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
I know what you mean, OG; I get messages to replies I never made: those are the ones that really bother me !
« I am putting myself to the fullest possible use which is all, I think, that any conscious entity can ever hope to do » HAL (Heuristically programmed ALgorithmic computer) in "2001, A Space Odyssey"
|
|
|
|
|
And I get answers to questions nobody ever asked.
Called "adverts", on TV...
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Perhaps, as they are the experts in this, you might want to give them a try. Your answer is the same as going to a DIY store and saying "I have a toothache, how do I get rid of it?" and when someone tells you to go see the dentist, you reply that if you'd wanted to do that, you would have, but your toothache is still there. Can you see how absurd the position is?
|
|
|
|
|
What? Ask the people who know the most about it?
But they might suggest he RTFM!
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Hello. I have this small video application which uses some threads. Now when a thread is called to open the media player for a media file, an exception is thrown
COM object that has been separated from its underlying RCW cannot be used
What does this exception mean and how can I fix this issue? Thanks for any pointer.
|
|
|
|
|