AdNauseam
AdNauseam copied to clipboard
AdVault with too many ads not rendering - "tab unresponsive"
Too many ads on my vault are failing to render, it makes the tab timeout.
It seems to crash at around 3000 ads being displayed at the same time.
Image of the vault (not all ads being displayed):
A couple of options here, long and short term, respectively:
- rewrite the D3 code to be cleaner/more efficient (it is quite a mess right now)
- restrict the number of ads users can view at one time
I ran a profiler on the process while it was working on rendering the ad vault. We spend most of our time doing rectangle packing, specifically checking if one rectangle contains another in order to merge them.