(Comment already expressed to @elemoine who's sitting opposite me)

This will trigger a re-render every time the mouse moves. It's only necessary add/remove the feature if the highlighted feature actually changes.