venediktov / vanilla-rtb

Real Time Bidding (RTB) - Demand Side Platform framework
http://forkbid.com
GNU General Public License v3.0
318 stars 84 forks source link

O(logN) complexity needed instead of O(N logN) when picking up multiple matching campaigns N>1 #76

Open venediktov opened 6 years ago

venediktov commented 6 years ago

Looks like last stage when we pick up campaigns from the cache the complexity is O(N LogN) , for every matched campaign id N we use LogN complexity lookup in the last cached table ~ O(N LogN) . Matching 20-30 campaign per request is within our benchmark goals however going above this number degrades performance.

AKAnkshASing commented 8 months ago

Hey, I am interested in resolving this issue