ocaml-containers icon indicating copy to clipboard operation
ocaml-containers copied to clipboard

add CCArray.of_iter

Open illusory0x0 opened this issue 10 months ago • 3 comments

  • #471

illusory0x0 avatar Jan 29 '25 03:01 illusory0x0

Looks useful, do you also want to add the updated benchmarks?

should we add more benchmark?

when iter_len very small, use list as buffer is faster than other implementation.

illusory0x0 avatar Jan 30 '25 02:01 illusory0x0

lists might be faster for small sizes, but what about large sizes? does it get worse?

c-cube avatar Jan 30 '25 02:01 c-cube

it would get worse.

look this benchmark for more details

illusory0x0 avatar Jan 30 '25 04:01 illusory0x0