Speed up circular pattern loading

Issue #42 new
dsmic created an issue

It is the bottleneck for parameter testing at the moment, therefore I ask, if you have any idea.

Might be an issue in the iPad version because of startup time later too.

If you have any idea, just leave a note:)

Minor points around this (Features.h):

std::map<Pattern::Circular,unsigned int> *circlevels;
std::map<unsigned int,std::string> *circstrings;
std::map<unsigned int,float> *circgammas;

Why are circstrings and circgammas a map? From your explanation with the levels starting at 1 and counting through a vector would be the correct data structure.

There might be fast loading for vectors, therefore I ask this.

Comments (2)

  1. Francois van Niekerk repo owner

    You are correct, circstrings and circgammas could be replaced with vectors. The reasons for making them maps don't exist any more. However, I don't think it will make such a big difference as maps should be fairly fast.

  2. Log in to comment