I want different home page for logged user


I want the non-logged-in users to see the normal home page and the logged-in users to see the buddypress activity page.

I was tried do this function with visual composer’s content type but there is too space area, also I think if both user see same page site will be slow ( I’m not sure but I think it is )