woothemes/woocommerce — pull request #3264 by kayue (2013-05-31 08:17:34+00:00)
Title: Performance Tweak: Use query to replace get_posts in get_product_ids_on_sale.

The query that get_posts generate will join the postmeta table twice, which is slow and uncessary.