Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • OM_Update
  • warnings
  • zs/fix_plugin_tcp
  • QtBaseViewer_dependencies
  • ovm-v3
  • mh/dev
  • cleanup/avoid-std-iterator
  • lpsolve-fixup-bundle
  • lukas_seeholzer_selectionHighlighter
  • cxx17
  • cmake-eigen
  • Python_experiments
  • bugfix/build-without-python
  • dev_mh
  • ovm-new-cmake
  • fix-macports-suitesparse-5.3.0
  • featurephysicallyBasedMaterial
  • meshcompiler_fast_update
  • OpenFlipper-4.0
20 results

OpenFlipper

  • Clone with SSH
  • Clone with HTTPS
  • Hans-Christian Ebke's avatar
    Hans-Christian Ebke authored
    Someone apparently had the misconception that clearing a vector
    deallocates the reserved memory of that vector and went through great
    lengths, writing hideous code in order to avoid ever decreasing the size
    of the three vectors sortedObjects_, overlayObjects_, and lineGL42Objects_.
    As a result, unnecessary variables were used for unsafe and hard to
    maintain bookkeeping and the size of these vectors was clumsily computed
    with an O(N) linear search instead of a constant time size lookup.
    309206ea
    History
    Name Last commit Last update