An update - I seem to have solved my problem.
I changed the code so that rather than call "ApplyExpressions" after I have added all the categories, I call, "sf.Categories.ApplyExpression(sf.Categories.Count -1)" in each iteration of the loop. This is many, many times faster, I didn't really expect it to be though.
Regards,
Rob H
I changed the code so that rather than call "ApplyExpressions" after I have added all the categories, I call, "sf.Categories.ApplyExpression(sf.Categories.Count -1)" in each iteration of the loop. This is many, many times faster, I didn't really expect it to be though.
Regards,
Rob H