kohlimannu
May 4th, 2006, 12:35 AM
Hi all
i m code like this
Function ReadFile()
'This function read a class file having around 1 lack line
' im using stream reader for that
' and then store all function name from that file and store them in a data table '
'now calling another function in a loop
for i=0 to datatable.row .count-1
ReadSubFunction(here im passing the stream reader which opened in the current fucntion,and the function so i can find the sub function )
next i
End Function
Function ReadSubFunction(sr as streamreader, searchFunction as string)
'now im reading that file again line by line to read all sub function of searchFunction
End Function
Actually my this code consume 100% CPU .
is there any way to speed up and keep free CPU
i m code like this
Function ReadFile()
'This function read a class file having around 1 lack line
' im using stream reader for that
' and then store all function name from that file and store them in a data table '
'now calling another function in a loop
for i=0 to datatable.row .count-1
ReadSubFunction(here im passing the stream reader which opened in the current fucntion,and the function so i can find the sub function )
next i
End Function
Function ReadSubFunction(sr as streamreader, searchFunction as string)
'now im reading that file again line by line to read all sub function of searchFunction
End Function
Actually my this code consume 100% CPU .
is there any way to speed up and keep free CPU