Skip to content
Data9 min read

Pack records before they fill linkset data

For this 14-field test record, linkset data holds about 660 JSON objects or 6,000 packed buffers. Compare storage savings with script memory and code costs.

tl;dr

  • Keep while they fit, since mostly save linkset data
  • The packing code cost more script memory than it saved with one record loaded, and paid off with 100
  • Copy values you read often into variables, because reading them from the buffer took about three times as long