Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 02/11/2021 in all areas

  1. Here's a snippet you can use if you want an unbound cluster size that preserves element names. (Note that the "Create Cluster" method is found in vi.lib/Utility/GetType.llb) It is much slower than your direct cast, but in the cases where you absolutely want to keep the element names, it might be worth the hit. Here are some quick comparison benchmarks on my machine: - 256 named elements => 7ms (compared to ~microseconds for the fixed-sized method) - 1000 named elements => 23ms - 10000 named elements => 135ms PS. This is a method found in DataManipulation package on VIPM. Since it is licensed under 0-BSD, feel free to extract at will (no attribution needed).
    2 points
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.