conveyal / browsochrones

Create isochrones and accessibility images in the browser
MIT License
6 stars 2 forks source link

getSurface slow again #3

Closed mattwigway closed 8 years ago

mattwigway commented 8 years ago

It's taking close to 40 seconds (in Chrome, only takes ~2s in Firefox)

mattwigway commented 8 years ago

It's mostly in computeAccessValues (see also #1)

mattwigway commented 8 years ago

Seeing a bunch of these in chrome/v8 debug output (chrome --js-flags='--trace-deopt'):

[deoptimizing (DEOPT soft): begin 0x201e4549a289 <JS Function computeAccessValues (SharedFunctionInfo 0x2e579397c111)> (opt #60) @18, FP to SP delta: 24]
            ;;; deoptimize at 230018: Insufficient type feedback for LHS of binary operation