mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 23:00:04 +00:00
Only Allocate cordinates in level3_radial_view when they are needed
This commit is contained in:
parent
dc72e9fbfc
commit
befa5f3ded
1 changed files with 2 additions and 1 deletions
|
|
@ -39,7 +39,6 @@ public:
|
|||
vcp_ {},
|
||||
sweepTime_ {}
|
||||
{
|
||||
coordinates_.resize(kMaxCoordinates_);
|
||||
}
|
||||
~Impl() { threadPool_.join(); };
|
||||
|
||||
|
|
@ -556,6 +555,8 @@ void Level3RadialView::Impl::ComputeCoordinates(
|
|||
// Calculate azimuth coordinates
|
||||
timer.start();
|
||||
|
||||
coordinates_.resize(kMaxCoordinates_);
|
||||
|
||||
const std::uint16_t numRadials = radialData->number_of_radials();
|
||||
const std::uint16_t numRangeBins = radialData->number_of_range_bins();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue