<commit_before>import FastArray from './fast-array';
import { MAX_ARRAY_SIZE } from './fast-array';

const STREAM_SERIES_POOL = new FastArray(10, 'StreamSeries Pool');

export default class StreamSeries extends FastArray {

  constructor() {
    super(...arguments);
    this._isDestroyed = false;
  }

  static create(number = MAX_ARRAY_SIZE, name = 'StreamEvent to List') {
    let series = STREAM_SERIES_POOL.pop();

    if (series) {
      series.init(number, name);

      return series;
    }

    return new StreamSeries(number, name);
  }

  destroy() {
    if (!this._isDestroyed) {
      this._isDestroyed = true;

      for (let j = 0; j < this.length; j++) {
        this._data[j].destroy();
        this._data[j] = undefined;
      }

      STREAM_SERIES_POOL.push(this);<commit_msg>feat(perf): don't super arguments when arguments are well known<commit_after>import FastArray from './fast-array';
import { MAX_ARRAY_SIZE } from './fast-array';

const STREAM_SERIES_POOL = new FastArray(10, 'StreamSeries Pool');

export default class StreamSeries extends FastArray {

  constructor(number = MAX_ARRAY_SIZE, name = 'StreamEvent to List') {
    super(number, name);
    this._isDestroyed = false;
  }

  static create(number = MAX_ARRAY_SIZE, name = 'StreamEvent to List') {
    let series = STREAM_SERIES_POOL.pop();

    if (series) {
      series.init(number, name);

      return series;
    }

    return new StreamSeries(number, name);
  }

  destroy() {
    if (!this._isDestroyed) {
      this._isDestroyed = true;

      for (let j = 0; j < this.length; j++) {
        this._data[j].destroy();
        this._data[j] = undefined;
      }

      STREAM_SERIES_POOL.push(this);
{'fraction_non_alphanumeric': 0.12684365781710916, 'fraction_numerical': 0.0035398230088495575, 'mean_word_length': 3.0966183574879227, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4619431', 'n_tokens_mistral': 553, 'n_tokens_neox': 535, 'n_words': 133}