https://github.com/coditva/postman-collection-property-list-benchmark
  
  
     
    https://github.com/coditva/postman-collection-property-list-benchmark
  
        Last synced: 8 months ago 
        JSON representation
    
- Host: GitHub
- URL: https://github.com/coditva/postman-collection-property-list-benchmark
- Owner: coditva
- Created: 2019-06-26T08:57:52.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-05-12T18:43:17.000Z (over 4 years ago)
- Last Synced: 2024-12-28T22:25:10.591Z (10 months ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- 
            Metadata Files:
            - Readme: README.md
 
Awesome Lists containing this project
README
          Benchmark before and after changing [postman-collection](https://github.com/postmanlabs/postman-collection)'s `Property-List` such that we always use `Property-List.reference` as an array of objects.
## Before
We use different way to store `reference`:
- As an object with *a value for each key* for properties with *single* values for same key.
- As an object with *an array for each key* for properties with *multiple* values for same key.
## After
We use same way to store `reference`:
- As an object with *an array for each key* for properties with *multiple* values for same key.
## Impact of change
### Pros:
- Faster access for multi valued lists.
- Less code path complexity.
### Cons:
- Slower access for single valued lists.
- May/will impact users who use private data structures for lists.