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

Pointslicepool size classes #1913

Closed
wants to merge 3 commits into from
Closed

Commits on Oct 1, 2020

  1. pointslicepool: use size classes

    1) save memory by not using large slices when we only need small ones
      In particular, fix #1912
    2) use a default size that corresponds to a capacity that append()
       actually uses (I believe a size of 800 gets rounded up by make)
    Dieterbe committed Oct 1, 2020
    Configuration menu
    Copy the full SHA
    8f5f85e View commit details
    Browse the repository at this point in the history
  2. accommodate GetMin() with huge minCap

    e.g. in docker-dev with 1s precision 2days means 172800 points.
    This is *before* maxdatapoints runtime consolidation,
    so we may as well accommodate it with some special size classes
    this makes sure our large slices won't be taken up by smaller (4k)
    requests
    Dieterbe committed Oct 1, 2020
    Configuration menu
    Copy the full SHA
    fb89cc5 View commit details
    Browse the repository at this point in the history

Commits on Oct 2, 2020

  1. fix: use cap, not len

    Dieterbe committed Oct 2, 2020
    Configuration menu
    Copy the full SHA
    e54a74e View commit details
    Browse the repository at this point in the history