Friday 15 February 2013

runtime - Reduce the time taken by Java program -



runtime - Reduce the time taken by Java program -

i'm reading thousands of records , fetch particular fields , validations(like ==0 or ==1) , need manipulations like, if field x in each record < 10, set field y = value.. that.

so 50 manipulations i'm doing. i'm using stringbuilder extract particular field , compare them values , replace values.

i have splitted manipulations 2 sets , running them concurrently blocking queues. that, 1 time first record finsihes set1, given set2. simultanously record can utilize set1.

but, whole process takes lot of time if utilize 100 records, requires 100 seconds. tried input of 10k records , took 3 hours.

is there way cut down time? certainly need cut down time taken.

java runtime

No comments:

Post a Comment