Comments (2)
for (int i = 0; i < FIFO_length; ++i)
{
mElements.push_back(T());
++cnt;
}
//mElements.resize(FIFO_length, T());
Perhaps the pushing to vector causes a lot of memory reallocations that is slowing it down. I've never encountered slowdown in that section.
Anyway, previously this was done with vector resize which should allocate all needed memory in one go, but for unknown reason it always gave segfaults, somehow changing the code to loop solved it.
from limesuite.
mElements.resize(FIFO_length, T());
I think using the vector::push_back() causes a lot of resizes and FIFO_length! (factorial) memory copies beach each element is copied every time there is a resize. But switching the push_back with resize doesn't fix the delay for me. :-( No idea.
Anyway, FIFO_length * samplesCount * float = 1024_2_32768*4 = 256 MiB And that could fail allocation to a single slab of memory.
from limesuite.
Related Issues (20)
- Meaning of SOAPY_SDR_TIME_ERROR in readStreamStatus() HOT 1
- UE's can't connect to LimeSDR on a bandwhith 1,4Mhz HOT 1
- Docs incorrect for LMS_Calibrate
- 22.09.0 build issue when Connection Remote is enabled. HOT 4
- The port is busy. Connection LimeRFE + LimeSDR HOT 1
- Build Windows assets for 22.09 release
- Issue with Debian packages. HOT 4
- Issue with rv64 HOT 6
- lime::ADF4002 infinite loop
- how can I access LMS7002M's register directly
- LimeUtil --fpga requires hard resetting the device (LimeSDR Mini V2) HOT 1
- Make a new Lime Suite release. HOT 1
- RPM Package for Fedora
- Firmware missing upstream HOT 5
- LimeSuiteGUI not built HOT 1
- fix API functions LMS_StartStream() and LMS_StopStream() : HOT 1
- Make LimeSDR Mini 2.0 Rx-only behaviour the same as previous SDRs. HOT 2
- About the latest release HOT 2
- LimeXTRX on PCIe - `basicTx` Issues After LimeSuite Update HOT 3
- limesuite and gr-limesdr HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from limesuite.