Please sign in to comment.
Memoize the result of gsubbing @virtual_path
This gets called many times for each virtual_path, creating a new string each time that `translate` is called. We can memoize this so that it only happens once per virtual_path instead.
- Loading branch information...
Showing with 5 additions and 2 deletions.