-
Notifications
You must be signed in to change notification settings - Fork 303
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refacto(cache): ditch Map() in Cache for simple tree (#1264)
refacto(cache): ditch Map() in Cache for simple tree The previous Cache was working on a single Map, which can become really slow and big after a few minutes of navigation in iTowns. Now, the Cache is composed of a single tree, that can contain node up to 3 levels. It simplifies things attached to a layer, a source or others things like a zoom value. Instead of having a complex string composed with all those information, it now uses several key accross all the node of the Cache. In term of performance, the proposed implementation is 20 times faster than the previous one.
- Loading branch information
Showing
3 changed files
with
90 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters