why is WMI so slow?

  • Thread starter Thread starter Rudolf Meier
  • Start date Start date
R

Rudolf Meier

Guest
Our application is reading some information at startup. First we used WMI... it took around 600 to 3500 [ms] to read. The first problem we had were the peeks of over 3 seconds. It's pretty strange to see such differences. Often we had 550 to 650, but sometimes extremely long times. And... then we tried to do it without WMI. Now we read all the information in about 12 [ms] whithout those huge peeks (+- 2 [ms]). What we did was more or less going to the Win32_ ... class documentation, see where it get's the information from and... get it from there ourselfs ... oh, and at the moment the code is horrible. We have a lot of stupid malloc/free inside, because it's just a proof of concept... so, the times can go down in the future.

My question now is... why is it so slow? Who did implement this?

Rudolf

Continue reading...
 
Back
Top