Click here to Skip to main content
15,888,521 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i'm puzzled why it uses sequential search in wndproc to search the handler of a msg.(use swtich..case.. statement). at least, it should use binary search for efficiency, doesn't it? sequential search's time-complexity is O(n), and binary search's is O(logn). they're quite different in efficiency along with the increase of 'n'.

as well as search the addr. of a function in virtual-table at runtime polymorphic.
Posted
Updated 12-Dec-09 5:16am
v2

1 solution

You have now posted this question as an article, in the C forum and here in quick answers. It has already been answered at least twice. Please post in one forum only.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900