S
Sanny
I read somwewhere to get efficiency we can record the output of
punction in a table and when the function is called we just search the
table. If our Values are found in it we can directly get the result
from the stored table.
If the value is not present we can call the function and store the
result in the Table for future needs.
Anyone knows how to implement it.
My function is Something like
function int getcarvalue(String carname, int Modelnumber, String
cartime){
}
Here I want to store the return value in Hash Map Such that I can get
values directly by searching the Table.
In this function if cartime > currentcartimevalue then we can reuse
the function. It is not needed that cartime should match.
Only String carname, int Modelnumber should Match. if cartime >
currentcartimevalue We can reuse the function value without any
problem.
I have to store 1 Million such records, So will finding values from
Hashp Map Table faster than using the function directly?
Bye
Sanny
punction in a table and when the function is called we just search the
table. If our Values are found in it we can directly get the result
from the stored table.
If the value is not present we can call the function and store the
result in the Table for future needs.
Anyone knows how to implement it.
My function is Something like
function int getcarvalue(String carname, int Modelnumber, String
cartime){
}
Here I want to store the return value in Hash Map Such that I can get
values directly by searching the Table.
In this function if cartime > currentcartimevalue then we can reuse
the function. It is not needed that cartime should match.
Only String carname, int Modelnumber should Match. if cartime >
currentcartimevalue We can reuse the function value without any
problem.
I have to store 1 Million such records, So will finding values from
Hashp Map Table faster than using the function directly?
Bye
Sanny