Bug 1586649 Comment 2 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

Given the following:
  * we know the required size at the allocation
  * no reallocation happens
  * many things have same life time
adding dedicated AllocPolicy with temporary space might work.

Also, about pre-alocated size, given allocating `SingleLookupHuffmanTable` `values`/`saturated` with 1 happens frequently, we could add non-`Vector` based variant with fixed size array would work nicely.
Given the following:
  * we know the required size at the allocation
  * no reallocation happens
  * many things have same life time

adding dedicated `AllocPolicy` with temporary space might work.

Also, about pre-alocated size, given allocating `SingleLookupHuffmanTable` `values`/`saturated` with 1 happens frequently, we could add non-`Vector` based variant with fixed size array would work nicely.
Given the following:
  * we know the required size at the allocation
  * no reallocation happens
  * many things have same life time

adding dedicated `AllocPolicy` with temporary space might work.

Also, about pre-alocated size, given allocating `SingleLookupHuffmanTable.{values,saturated}` with 1 happens frequently, we could add non-`Vector` based variant with fixed size array would work nicely.

Back to Bug 1586649 Comment 2