Code Snippet To Reduce Memory Usage

Joost de Valk has published a code snippet along with an explanation regarding the reduction of memory usage when using get_permalink with post objects. This may come in handy for plugin developers who are not already using this technique.