SI
SI
discoversearch

We've detected that you're using an ad content blocking browser plug-in or feature. Ads provide a critical source of revenue to the continued operation of Silicon Investor.  We ask that you disable ad blocking while on Silicon Investor in the best interests of our community.  If you are not using an ad blocker but are still receiving this message, make sure your browser's tracking protection is set to the 'standard' level.
Technology Stocks : Advanced Micro Devices - Moderated (AMD)
AMD 210.80-4.8%Dec 12 3:59 PM EST

 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext  
To: TGPTNDR who wrote (65000)12/5/2001 5:57:23 PM
From: Joe NYCRead Replies (1) of 275872
 
tg,

the hash table may be sparse, so direct index is impossible, instead, the way I recall the hash tables work is that there is a some function that will bring you within the range of the sought value, and from there you get to the right value in linear fashion. The time it takes to complete is fixed, independent of N.

So when Kap ran the scenarios, the time it takes to lookup the right value in the hash table does not change from 1,000 to 10,000 cases, meaning it has no bearing on the execution time, meaning that even if there are differences between Piii and P4 in the way and the time it takes to execute the lookup, it is a constant value.

Suppose the constant is 100 cycles for Piii, and 200 cycles for P4. These are irrelevant compared to incremental time added by executing the case statement for 1000s cases x 3.5 cycles per case of Piii, or 1000s of cases x 7 clock cycles of P4. There may be a way to calculate this constant by running the loop for very few cases, with good timing.

Joe
Report TOU ViolationShare This Post
 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext