Skip to content

Instantly share code, notes, and snippets.

View eugeneko's full-sized avatar

Eugene Kozlov eugeneko

  • CQG Inc.
  • Yerevan, Armenia (ex. Moscow, Russia)
View GitHub Profile
@eugeneko
eugeneko / Main.cpp
Created February 6, 2020 14:28
Urho3D vs EASTL container benchmark
#include <benchmark/benchmark.h>
#include <EASTL/string.h>
#include <EASTL/vector.h>
#include <EASTL/hash_map.h>
#include <Urho3D/Container/Vector.h>
#include <Urho3D/Container/Str.h>
#include <Urho3D/Container/HashMap.h>
static void Test_Trivial_StringVector_EA()
{
@eugeneko
eugeneko / convert_enums.py
Last active January 29, 2021 19:04
Script for enum modernization in Urho
import sys
import os
import re
re_enum = re.compile(r'\s*enum\s*(\w+)\s*(:.*)?\s*')
re_enum_value = re.compile(r'\s*(\w+)(?:\s*=\s*(.+))?,?(?:\s*\/\/.*)?\s*')
folders_blacklist = [
# 'Urho3D/Audio',
# 'Urho3D/Container',
# 'Urho3D/Core',