It does the same thing as "Print" with phpBB viewtopic, only instead of printing the posts from the current page being viewed, it prints all the posts from the topic.
It requires one sql query and the query is only ran if a user clicks on the link.