Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve performance of JS implementation of AlternativeLocationImpl
#getStringLocation reads the original file, but is called from the EDT, so invocations must be kept to a minimum. What is more the method is used by #compareTo and thus is potentially called often. Two optimisations are applied: - the result of #getStringLocation is cached and only calculated once - #compareTo was rewritten to use the relative path and offset directly. Before relative path and the line number was used to create an ordering, as offset and line number are related, switching for ordering shoud have no outside result
- Loading branch information