Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

MAPSJS-2783: Faster creation of keys for techniques with dynamic array buffer properties. #2182

Merged
merged 2 commits into from
Apr 27, 2021

Conversation

atomicsulfate
Copy link
Collaborator

@atomicsulfate atomicsulfate commented Apr 26, 2021

Instead of stringifying the array buffers, an id is assigned to them
and used as part of the technique key.

Signed-off-by: Andres Mandado andres.mandado-almajano@here.com

…rray buffer properties.

Instead of stringifying the array buffers, and id is assigned to them
and used as part of the technique key.

Signed-off-by: Andres Mandado <andres.mandado-almajano@here.com>
@atomicsulfate atomicsulfate changed the title MAPSJS-2783: Faster computation of keys for techniques with dynamic a… MAPSJS-2783: Faster creation of keys for techniques with dynamic array buffer properties. Apr 26, 2021
@codecov
Copy link

codecov bot commented Apr 26, 2021

Codecov Report

Merging #2182 (32ec19d) into master (e04d289) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2182   +/-   ##
=======================================
  Coverage   68.43%   68.44%           
=======================================
  Files         299      299           
  Lines       26519    26525    +6     
  Branches     6008     6009    +1     
=======================================
+ Hits        18149    18155    +6     
  Misses       8370     8370           
Impacted Files Coverage Δ
.../harp-datasource-protocol/lib/StyleSetEvaluator.ts 89.80% <100.00%> (+0.15%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e04d289...32ec19d. Read the comment docs.


const techniquesTileB = (() => {
const ev = new StyleSetEvaluator({ styleSet: texturedStyle });
ev.getMatchingTechniques(new MapEnv({ kind: "park", map: { buffer: buffer2 } }));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also add a test where the buffer: both point to buffer1 and the length is 1

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Member

@nzjony nzjony left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just please extend the unit test a bit.

Signed-off-by: Andres Mandado <andres.mandado-almajano@here.com>
@atomicsulfate atomicsulfate merged commit cb96eaf into master Apr 27, 2021
@atomicsulfate atomicsulfate deleted the MASPJS-2783_FixTechniqueKeys2 branch April 27, 2021 09:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants