kaazing / http2-cache.js

2 stars 11 forks source link

Use data accessors instead of getter when possible #74

Closed hthetiot closed 6 years ago

hthetiot commented 6 years ago

Currently we use getter for statusCode override but base on @BnTejaede measurements data accessors use ~60% as much memory as getters. (If get: uses 10 units of memory, value: uses 6 units of memory.)

Optimization is needed by using feature detection on statusCode 0 to fallback on getter only when needed, here IE 11.