Blender V5.3
BLI_group_indices.cc File Reference
#include <algorithm>
#include <cinttypes>
#include <cmath>
#include "testing/testing.h"
#include "BLI_array.hh"
#include "BLI_array_utils.hh"
#include "BLI_function_ref.hh"
#include "BLI_offset_indices.hh"
#include "BLI_rand.hh"
#include "BLI_task_c.hh"
#include "BLI_time.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Typedefs

using blender::MakeIndicesFn = Array<int> (*)(int64_t, int64_t)

Functions

static Array< int > blender::make_random_indices (const int64_t groups_num, const int64_t indices_num)
static Array< int > blender::make_clustered_indices (const int64_t groups_num, const int64_t indices_num)
static double blender::run_iterations (const int64_t indices_num, const FunctionRef< void()> function)
static void blender::print_time (const double seconds)
static void blender::print_table_header (const char *title)
static void blender::run_count_table (const char *title, const MakeIndicesFn make_indices)
static void blender::run_build_groups_table (const char *title, const MakeIndicesFn make_indices)
 blender::TEST (group_indices_performance, CountIndices)
 blender::TEST (group_indices_performance, BuildGroupsFromIndices)

Variables

static const int64_t blender::GROUP_COUNTS [] = {8, 64, 512, 4096, 32768, 262144, 1048576, 4194304}
static const int64_t blender::INDEX_COUNTS [] = {100000, 1000000, 10000000}