rblsi.js
function BruteForceList(capacity) {
  this.intervals = pool.mallocDouble(2 * capacity)
  this.index = pool.mallocInt32(capacity)
  this.count = 0
}
function BruteForceList(capacity) {
  this.intervals = pool.mallocDouble(2 * capacity)
  this.index = pool.mallocInt32(capacity)
  this.count = 0
}
function BruteForceList ( capacity ) { this . intervals = pool . mallocDouble ( 2 * capacity ) this . index = pool . mallocInt32 ( capacity ) this . count = 0 }
It is silly, but this is faster than doing the right thing for up to a few thousand segments, which hardly occurs in practice.
It is silly but this is faster than doing the right thing for up to a few thousand segments which hardly occurs in practice .