added note about wasteful naive impl