If you have time, you can apply rub to the pork anywhere from a half hour to 8 hours before smoking. The longer it sits the longer it has for the flavor to penetrate the meat. However, you will still get great flavor if you apply the rub just before placing the meat on the smoker.