The problem is solved. See for more detail
https://github.com/mysql-d/mysql-native/issues/104
On Wednesday, 19 April 2017 at 07:28:32 UTC, Suliman wrote:
1. You're measuring it wrong. Array length is already measured
in terms of type size.
So should I do:
cargpspoints.length * cargpspoints[0].sizeof ?
No. .sizeof is the statically known size of a type, it can't take
into account dyn
On Wednesday, 19 April 2017 at 15:18:32 UTC, crimaniak wrote:
On Tuesday, 18 April 2017 at 11:43:24 UTC, Suliman wrote:
I am writing app that extract data from DB to array of
structures.
void getSingleTrackInfo()
{
foreach(item; getTablesGPSSens
On Tuesday, 18 April 2017 at 11:43:24 UTC, Suliman wrote:
I am writing app that extract data from DB to array of
structures.
void getSingleTrackInfo()
{
foreach(item; getTablesGPSSensorList)
{
ResultRange r
I have added GC.stat
https://dlang.org/library/core/memory/gc.stats.html here the
result:
freeSize: 49698640 | usedSize: 170502320
freeSize: 41174592 | usedSize: 217823680
freeSize: 53868576 | usedSize: 247072736
freeSize: 86494800 | usedSize: 307769776
freeSize: 58176640 | usedSize: 49966
auto mymem = cargpspoints.length *
typeof(cargpspoints[0]).sizeof;
writeln(mymem);
And it's print: 16963440
it's about 16MB...
What is takes all other memory?
1. You're measuring it wrong. Array length is already measured
in terms of type size.
So should I do:
cargpspoints.length * carg
On Tuesday, 18 April 2017 at 14:15:59 UTC, Stanislav Blinov wrote:
On Tuesday, 18 April 2017 at 14:09:28 UTC, Stanislav Blinov
wrote:
foreach(row; result)
{
arr ~= row.toStruct(cargpspoint);
}
Sorry, this should be
foreach(row; result)
{
row.toStruct(
On Tuesday, 18 April 2017 at 14:09:28 UTC, Stanislav Blinov wrote:
foreach(row; result)
{
arr ~= row.toStruct(cargpspoint);
}
Sorry, this should be
foreach(row; result)
{
row.toStruct(cargpspoint);
arr ~= cargpspoint;
}
On Tuesday, 18 April 2017 at 13:28:57 UTC, Suliman wrote:
Also I can't understand why app take so much memory? I checked
array of structures size with this code:
auto mymem = cargpspoints.length *
typeof(cargpspoints[0]).sizeof;
writeln(mymem);
And it's print: 16963440
it's about 16MB...
Also I can't understand why app take so much memory? I checked
array of structures size with this code:
auto mymem = cargpspoints.length *
typeof(cargpspoints[0]).sizeof;
writeln(mymem);
And it's print: 16963440
it's about 16MB...
What is takes all other memory?
I am writing app that extract data from DB to array of structures.
void getSingleTrackInfo()
{
foreach(item; getTablesGPSSensorList)
{
ResultRange result = mysqlconnection.query(sqlquery);
11 matches
Mail list logo